-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
45 lines (36 loc) · 955 Bytes
/
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
plugins {
id 'java'
}
apply plugin: 'eclipse'
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
testImplementation group: 'javax.activation', name: 'activation', version: '1.1.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.2'
}
tasks.named('test') {
useJUnitPlatform()
}
task javaDocs(type: Javadoc) {
classpath = sourceSets.main.runtimeClasspath
source = sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: 'javaDocs') {
from javadoc
classifier = 'javadoc'
exclude "**/extra/**"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
exclude "**/extra/**"
}
artifacts {
archives javadocJar
archives sourcesJar
}