-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (53 loc) · 1.03 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
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: "jacoco"
jacoco {
toolVersion = "0.7.9"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
csv.enabled true
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
sourceCompatibility = 1.8
version = '1.0'
dependencies {
compile files('libs/JCat-Editor-1.0.jar')
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
sourceSets{
main{
java{
srcDirs=['src/main/java/JCat']
}
}
test{
java{
srcDirs=['src/test/java']
}
}
}
jar {
baseName 'JCat-Render'
}
//copy builded jar to my other projects which need it
task copyJar(type: Copy,dependsOn: [build]) {
from ('build/libs/')
into('A:/java/myJar')
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}