-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
109 lines (82 loc) · 2.48 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://dl.bintray.com/hhu-bsinfo/dxram"
}
maven {
url 'https://oss.jfrog.org/artifactory/oss-snapshot-local'
}
}
dependencies {
classpath "de.hhu.bsinfo:dxbuild:0.3.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
}
}
plugins {
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
id "com.jfrog.artifactory" version "4.7.5"
}
apply plugin: 'dxbuild'
group = 'de.hhu.bsinfo'
version = '0.7.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
mainClassName = 'de.hhu.bsinfo.dxnet.DXNetMain'
// add log4j2 config path to default arguments of start script
applicationDefaultJvmArgs = [
'-Dlog4j.configurationFile=file:DXRAM_HOME/config/log4j2.xml'
]
project.startScripts.with {
doLast {
unixScript.text = unixScript.text.replace('DXRAM_HOME', '\$APP_HOME')
}
}
// create empty jni folder in dist
installDist.doLast {
project.file("$project.buildDir/dist/$project.name/jni").mkdir()
}
repositories {
mavenCentral()
maven {
url "https://dl.bintray.com/hhu-bsinfo/dxram"
}
maven {
url 'https://oss.jfrog.org/artifactory/oss-snapshot-local'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs += ["-Werror", "-Xlint:sunapi", "-XDenableSunApiLintControl"]
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
compileOnly 'org.projectlombok:lombok:1.18.2'
api "de.hhu.bsinfo:dxmon:0.4.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
api "de.hhu.bsinfo:dxutils:0.7.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
testImplementation 'junit:junit:4.12'
extTestImplementation 'junit:junit:4.12'
}
artifacts {
archives sourcesJar
archives javadocJar
}
apply from: 'types.gradle'
apply from: 'publish.gradle'
apply from: 'bintray.gradle'
apply from: 'artifactory.gradle'
task wrapper(type: Wrapper) {
gradleVersion = "4.10"
}