-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle_bak
108 lines (78 loc) · 2.1 KB
/
build.gradle_bak
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "ch.raffael.markdown-doclet:markdown-doclet:1.4"
}
}
//apply plugin: "ch.raffael.markdown-doclet"
apply plugin: "java"
apply plugin: "java-library-distribution"
group = "eu.lestard"
version = "1.0"
apply from: "maven_upload.gradle"
// Create Distribution ZIP with './gradlew distZip'
distributions {
main {
baseName = "easy-di"
contents {
from {'README.md'}
from {'LICENSE.md'}
}
}
}
ext.moduleName = 'eu.lestard.easydi'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceSets {
moduleInfo {
java {
srcDir 'src/module-info/java'
}
}
}
compileModuleInfoJava {
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
inputs.property("moduleName", moduleName)
doFirst {
classpath += sourceSets.main.compileClasspath
options.compilerArgs = [
'--module-path', classpath.asPath,
'-d', sourceSets.main.output.classesDirs.asPath
]
}
}
jar {
manifest {
attributes("Automatic-Module-Name": moduleName)
}
from sourceSets.main.output
from sourceSets.moduleInfo.output
}
repositories {
mavenLocal()
mavenCentral()
maven{
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
configurations {
markdownDoclet
}
dependencies {
compile 'javax.inject:javax.inject:1'
// testing
testCompile "org.junit.jupiter:junit-jupiter-api:5.3.1"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.3.1"
testCompile "org.assertj:assertj-core:3.11.1"
markdownDoclet "ch.raffael.markdown-doclet:markdown-doclet:1.4"
}
javadoc.options {
links "http://docs.oracle.com/javase/8/docs/api/", "http://docs.oracle.com/javaee/6/api"
docletpath = configurations.markdownDoclet.files.asType(List)
doclet = "ch.raffael.mddoclet.MarkdownDoclet"
addStringOption("parse-timeout", "10")
}