-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
52 lines (44 loc) · 1.12 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
//Gradle file library ev3dev-lang-java // lejos-commons
//Author: Juan Antonio Breña Moral
version = '0.7.3'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
//Compile
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
//Jar
jar {
baseName = "${rootProject.name}"
manifest {
from file("${projectDir}/src/main/resources/META-INF/MANIFEST.MF")
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
//TODO Review failing classes in the next release
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.ev3dev-lang-java'
artifactId = 'ev3dev-lang-java'
version = "${version}"
from components.java
artifact (sourcesJar) {
classifier = 'sources'
}
//artifact (javadocJar) {
// classifier = 'javadoc'
//}
}
}
}