forked from starlibs/AILibs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
133 lines (116 loc) · 3.67 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
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
123
124
125
126
127
128
129
130
131
132
133
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.4"
}
}
// Artifact publishing and versoning
plugins {
id 'nebula.release' version '6.0.2'
id "nebula.project" version "3.4.0"
id "nebula.maven-base-publish" version "5.1.4"
id "org.sonarqube" version "2.6.2"
}
allprojects {
//Shadow for fat-jars
apply plugin: "com.github.johnrengelman.shadow"
//IDE
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "idea"
//Other
apply plugin: "maven"
apply plugin: "jacoco"
//Nebula
apply plugin: 'nebula.project'
apply plugin: 'nebula.nebula-release'
apply plugin: 'nebula.maven-base-publish'
//Java version
sourceCompatibility = 1.8
targetCompatibility = 1.8
//Project properties
project.group = 'de.upb.isys'
project.version = '0.0.1-SNAPSHOT'
//Repositories
repositories {
mavenCentral()
mavenLocal()
maven { url "https://jitpack.io" }
maven { url "http://clojars.org/repo/" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://nexus.cs.upb.de/repository/maven-releases/" }
flatDir {
dirs 'lib'
}
}
//Dependencies for all(!) projects
dependencies {
//Logger
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
runtimeOnly group: 'org.slf4j', name:'slf4j-log4j12', version:'1.7.25'
//Testing
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
}
//Always check for updates in SNAPSHOT versions, do not cache
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
//Nebula releases
nebulaRelease { addReleaseBranchPattern('/dev/') }
//Sonarqube config
sonarqube {
properties {
properties["sonar.projectKey"] = project.name
properties["sonar.projectName"] = project.name
properties["sonar.projectDescription"] = project.description
properties["sonar.projectVersion"] = project.version
properties["sonar.projectBaseDir"] = project.projectDir
properties["sonar.working.directory"] = "$project.buildDir/sonar"
properties["sonar.sourceEncoding"] = project.compileJava.options.encoding
properties["sonar.java.source"] = project.sourceCompatibility
properties["sonar.java.target"] = project.targetCompatibility
properties["sonar.java.binaries"] = sourceSets.main.output.classesDir
properties["sonar.java.test.binaries"] = sourceSets.test.output.classesDir
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
url "${nexusBaseUrl}/repository/${nexusUpRepo}-${'snapshots'}"
credentials {
username "${nexusUser}"
password "${nexusPassword}"
}
}
}
}
}
dependencies{
compile project(":hasco")
compile project(":mlplan")
compile project(":JAICore:jaicore-basic")
compile project(":JAICore:jaicore-concurrent")
compile project(":JAICore:jaicore-experiments")
compile project(":JAICore:jaicore-graph")
compile project(":JAICore:jaicore-graphvisualizer")
compile project(":JAICore:jaicore-logic")
compile project(":JAICore:jaicore-math")
compile project(":JAICore:jaicore-ml")
compile project(":JAICore:jaicore-planning")
compile project(":JAICore:jaicore-processes")
compile project(":JAICore:jaicore-search")
compile project(":JAICore:jaicore-services")
}
publish.dependsOn shadowJar