forked from dragoul77/fuava_ctprofiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (50 loc) · 1.13 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
allprojects {
apply plugin: 'eclipse'
tasks.eclipse.dependsOn << ['cleanEclipse']
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
version = '1.0.7-jl'
repositories {
mavenLocal()
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_6
publishing {
repositories {
maven {
url "$mavenRepo"
credentials {
username "$mavenUser"
password "$mavenPassword"
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
baseName = baseName
from sourceSets.main.allSource
}
// FIXME javadoc generation fails with errors
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact tasks.sourcesJar
}
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile 'org.testng:testng:6.9.4'
}
artifacts {
archives sourcesJar
//archives javadocJar
}
}
}