-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
52 lines (47 loc) · 1.18 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
plugins {
id 'java'
id 'application'
id 'com.gradleup.shadow' version '9.0.0-beta4'
id 'distribution'
id 'maven-publish'
}
java {
sourceCompatibility = JavaVersion.VERSION_18
targetCompatibility = JavaVersion.VERSION_18
}
application {
mainClass = 'org.wiztools.xsdgen.XsdGenMain'
}
dependencies {
implementation 'org.wiztools.commons:wiztools-commons-lib:0.4.1',
'com.github.spullara.cli-parser:cli-parser:1.1.6'
implementation('xom:xom:1.3.9') {
exclude module: ['xerces:xercesImpl', 'xml-apis:xml-apis']
}
testImplementation 'junit:junit:4.+'
}
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
archiveClassifier = 'fat'
dependencies {
exclude(dependency('xerces:xercesImpl'))
exclude(dependency('xml-apis:xml-apis'))
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/wiztools/xsd-gen")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
groupId 'org.wiztools'
from(components.java)
}
}
}