-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (29 loc) · 828 Bytes
/
Copy pathbuild.gradle
File metadata and controls
36 lines (29 loc) · 828 Bytes
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
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.github.stefanhaustein'
version = '2.5.0'
java {
modularity.inferModulePath.set(true)
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
}
// This is in case we ever use non-ASCII chars in sources
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
repositories {
mavenLocal()
maven {
url "https://dl.bintray.com/unverbraucht/java9-fixed-jars"
}
}
dependencies {
implementation(group: 'org.xmlpull', name: 'xmlpull', version: '1.1.4.0')
testImplementation(group: 'junit', name: 'junit', version: '4.12')
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}