This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
105 lines (80 loc) · 2.46 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
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.dxmem.DXMemMain'
applicationDefaultJvmArgs = [
'-Dlog4j.configurationFile=file:DXMEM_HOME/config/log4j2.xml'
]
project.startScripts.with {
doLast {
unixScript.text = unixScript.text.replace('DXMEM_HOME', '\$APP_HOME')
}
}
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'])
implementation "de.hhu.bsinfo:dxmon:0.4.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
implementation "de.hhu.bsinfo:dxutils:0.7.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
implementation 'org.jline:jline:3.9.0'
implementation 'info.picocli:picocli:3.5.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.9.0'
extTestImplementation 'junit:junit:4.12'
extTestImplementation 'org.assertj:assertj-core:3.9.0'
}
artifacts {
archives sourcesJar
archives javadocJar
}
apply from: 'publish.gradle'
apply from: 'bintray.gradle'
apply from: 'artifactory.gradle'
apply from: 'types.gradle'
task wrapper(type: Wrapper) {
gradleVersion = "4.10"
}