forked from setl/rdf-urdna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·80 lines (71 loc) · 1.66 KB
/
build.gradle
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
buildscript {
repositories {
//Allow local repository for snapshot builds
if (version.endsWith("SNAPSHOT")) {
mavenLocal()
mavenCentral()
}
maven {
url "http://si-nexus01.dev.setl.io:8081/repository/maven-public/"
allowInsecureProtocol = true
}
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7"
classpath "io.setl.gradle.plugins:setl-gradle-plugins:1.0.1"
}
}
plugins {
id 'checkstyle'
id "com.github.spotbugs" version "4.0.2"
id 'java'
id 'maven-publish'
}
apply plugin: "org.sonarqube"
sourceCompatibility = 11
group 'io.setl'
version '1.0-SNAPSHOT'
java {
withSourcesJar()
}
repositories {
//Allow local repository for snapshot builds
if (version.endsWith("SNAPSHOT")) {
mavenLocal()
mavenCentral()
}
maven {
url "http://si-nexus01.dev.setl.io:8081/repository/maven-public/"
allowInsecureProtocol = true
}
}
dependencies {
implementation group: 'com.apicatalog', name: 'titanium-json-ld', version: '0.8.5'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
// Checkstyle
checkstyle {
toolVersion = "7.8.2"
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
// Publishing
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
credentials {
username = "$mavenUser"
password = "$mavenPassword"
}
if (version.endsWith("SNAPSHOT")) {
url 'http://si-nexus01.dev.setl.io:8081/repository/setl-snaps'
} else {
url 'http://si-nexus01.dev.setl.io:8081/repository/setl-libs'
}
}
}
}