-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (53 loc) · 1.19 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'org.aperlambda'
version = '1.8.1'
description = 'A library written in Java 8 with common features.'
ext.moduleName = 'org.aperlambda.lambdacommon'
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
api 'com.google.code.gson:gson:2.8.5'
api 'com.google.guava:guava:27.1-jre'
api 'org.jetbrains:annotations:17.0.0'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
javadoc {
inputs.property("moduleName", moduleName)
doFirst {
options.addStringOption('XDignore.symbol.file', '-html5')
options.addStringOption('-module-path', classpath.asPath)
}
}
jar {
from 'LICENSE'
inputs.property("moduleName", moduleName)
manifest {
attributes('Automatic-Module-Name': moduleName)
}
}
/*signing {
sign configurations.archives
}*/
publishing {
publications {
lambdajcommon(MavenPublication) {
from components.java
artifactId = 'lambdajcommon'
}
}
repositories {
maven {
url = "$buildDir/repo"
}
}
}