-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·122 lines (100 loc) · 2.86 KB
/
build.gradle
File metadata and controls
executable file
·122 lines (100 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
buildscript {
repositories {
//Allow local repository for snapshot builds
if (version.endsWith("SNAPSHOT")) {
mavenLocal()
}
mavenCentral()
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7"
}
}
plugins {
id 'checkstyle'
id "com.github.spotbugs" version "4.0.2"
id 'signing'
id 'java'
id 'maven-publish'
}
apply plugin: "org.sonarqube"
apply plugin: 'maven'
sourceCompatibility = 1.8
group 'io.setl'
version '1.4'
java {
withSourcesJar()
}
javadoc {
source = sourceSets.main.allJava
}
repositories {
//Allow local repository for snapshot builds
if (version.endsWith("SNAPSHOT")) {
mavenLocal()
}
mavenCentral()
}
dependencies {
implementation group: 'com.apicatalog', name: 'titanium-json-ld-jre8', version: '1.4.1'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'jakarta.json', name: 'jakarta.json-api', version: '2.0.1'
testImplementation group: 'org.glassfish', name: 'jakarta.json', version: '2.0.1'
}
// Checkstyle
checkstyle {
toolVersion = "7.8.2"
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
signing {
useGpgCmd()
sign configurations.archives
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
artifacts {
archives javadocJar, sourcesJar
}
// Upload to Maven Central
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsernameToken, password: ossrhPasswordToken)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsernameToken, password: ossrhPasswordToken)
}
pom.project {
name 'Universal RDF Dataset Normalization Algorithm (2015) in Java'
packaging 'jar'
// optionally artifactId can be defined here
description 'An implementation of the URDNA-2015 algorithm which transforms any RDF dataset into a canonical form.'
url 'https://github.com/setl/rdf-urdna'
scm {
connection 'scm:git:https://github.com/setl/rdf-urdna.git'
developerConnection 'scm:git:https://github.com/setl/rdf-urdna.git'
url 'https://github.com/setl/rdf-urdna'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'simon-greatrix'
name 'Simon Greatrix'
email 'simon.greatrix@setl.io'
organization 'SETL'
organizationUrl 'https://setl.io'
}
}
}
}
}
}