forked from Reithger/Project-Diagram-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (96 loc) · 2.41 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
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
109
110
111
112
113
114
115
plugins {
id "com.gorylenko.gradle-git-properties" version "2.4.2"
id 'io.freefair.aggregate-javadoc' version '8.7.1'
id "io.freefair.javadoc-links" version "8.10"
}
ext {
batikVersion = '1.17'
junit5Version = '5.11.0'
log4jVersion = '2.23.1'
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
dependencies {
rootProject.subprojects { subproject ->
subproject.plugins.withId("java") {
javadoc subproject
}
}
}
subprojects {
group = 'com.github.syoon2.pdg'
version = '2.1.0-dev'
apply plugin: 'java'
apply plugin: "com.gorylenko.gradle-git-properties"
apply plugin: "io.freefair.javadoc-links"
java {
// Assume Java 11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
// JUnit 5 / Jupiter
testImplementation("org.junit.jupiter:junit-jupiter:${junit5Version}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junit5Version}")
// Apache Commons
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.16.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.16.1'
// Apache Log4j2
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4jVersion}"
}
test {
dependsOn cleanTest
testLogging.showStandardStreams = true
}
tasks.named('test', Test) {
useJUnitPlatform()
}
// Options when compiling tests
compileTestJava {
options.encoding = 'UTF-8'
options.compilerArgs += [
'-Xlint:unchecked',
'-Xlint:deprecation'
]
}
task buildDependenciesFolder(type: Copy) {
from configurations.implementation
into './dependencies'
}
}
project(':pdg-api') {
jar { enabled = true }
}
project(':pdg-launcher') {
dependencies {
implementation project(':pdg-api')
}
}
allprojects {
tasks.withType(JavaCompile) {
dependsOn generateGitProperties
options.encoding = 'UTF-8'
options.compilerArgs += [
'-Xlint:unchecked',
'-Xlint:deprecation'
]
}
gitProperties {
gitPropertiesName = "git.properties"
}
task printAllDependencies(type: DependencyReportTask) {}
tasks.withType(Jar) {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
}