-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
119 lines (102 loc) · 3.45 KB
/
Copy pathbuild.gradle
File metadata and controls
119 lines (102 loc) · 3.45 KB
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
116
117
118
119
plugins {
id 'base'
}
group = 'dev.takesome'
version = '1.0.28'
ext {
luajVersion = '3.0.1'
jansiVersion = '2.4.2'
log4jVersion = '2.26.0'
jfreeSvgVersion = '5.0.7'
batikVersion = '1.19'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = rootProject.group
version = rootProject.version
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
failOnError = false
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:6.1.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:6.1.0'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
description = "HtmlDom ${project.name} module"
url = 'https://github.com/Take-Some/JavaDOM'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'take-some'
name = 'Take Some()'
}
}
scm {
connection = 'scm:git:https://github.com/Take-Some/JavaDOM.git'
developerConnection = 'scm:git:https://github.com/Take-Some/JavaDOM.git'
url = 'https://github.com/Take-Some/JavaDOM'
}
}
}
}
repositories {
maven {
name = 'GitHubPackages'
url = uri('https://maven.pkg.github.com/Take-Some/JavaDOM')
credentials {
username = findProperty('gpr.user') ?: System.getenv('GITHUB_ACTOR')
password = findProperty('gpr.key') ?: System.getenv('GITHUB_TOKEN')
}
}
}
}
}
tasks.register('bundledHtmlUiJar') {
group = 'distribution'
description = 'Builds executable desktop HtmlDom showcase jar.'
dependsOn ':html-dom-desktop:bundledHtmlUiJar'
}
tasks.register('runBundledHtmlUi') {
group = 'application'
description = 'Runs the desktop HtmlDom showcase launcher.'
dependsOn ':html-dom-desktop:run'
}
tasks.register('packageRelease') {
group = 'distribution'
description = 'Builds all release jars and the bundled desktop showcase jar.'
dependsOn 'build', 'bundledHtmlUiJar', ':html-dom-desktop:aioJar'
}
tasks.register('runHtmlOnlyAnimationDemo') {
group = 'application'
description = 'Runs the self-contained HTML-only animation and Lua controls demo.'
dependsOn ':html-dom-desktop:runHtmlOnlyAnimationDemo'
}
tasks.register('htmlOnlyAnimationDemoJar') {
group = 'distribution'
description = 'Builds executable self-contained HTML-only animation and Lua controls demo jar.'
dependsOn ':html-dom-desktop:htmlOnlyAnimationDemoJar'
}