-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
80 lines (67 loc) · 2.13 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
group 'com.bitjourney.plantuml'
version '1.4.15'
final MainClassName = "${group}.Main"
// See
// http://plantuml.com/changes
// https://search.maven.org/artifact/net.sourceforge.plantuml/plantuml
final PlantUmlVersion = "1.2024.8"
final ArchiveName = "plantuml-service.jar"
buildscript {
// https://kotlinlang.org/
ext.kotlin_version = '2.0.21'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
dependencies {
implementation "net.sourceforge.plantuml:plantuml:$PlantUmlVersion"
implementation "com.sparkjava:spark-core:2.9.4"
implementation "org.slf4j:slf4j-simple:2.0.16"
implementation "com.google.code.gson:gson:2.11.0"
implementation "com.github.ben-manes.caffeine:caffeine:3.1.8"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.26.3'
}
repositories {
mavenCentral()
}
jar {
archiveName ArchiveName
manifest {
attributes(
"Main-Class": MainClassName,
"Specification-Version": PlantUmlVersion,
"Implementation-Title": "plantuml-service",
"Implementation-Version": version,
"Implementation-Vendor": "BitJourney, Inc."
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
task stage(type: Copy, dependsOn: jar) {
from file("build/libs/${ArchiveName}")
into file("bin/")
}
if (new File(System.getenv("HOME"), ".github").exists()) {
ext.githubOwner = "bitjourney"
ext.githubRepo = "plantuml-service"
ext.artifactFile = file("bin/plantuml-service.jar")
ext.artifactContentType = "application/java-archive"
ext.version = version
apply from: './release.gradle'
}