File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
3+ plugins {
4+ java
5+ application
6+ id(" io.github.goooler.shadow" ) version " 8.1.7"
7+ }
8+
9+ group = " net.swofty"
10+ version = " 3.0"
11+
12+ java {
13+ sourceCompatibility = JavaVersion .VERSION_21
14+ targetCompatibility = JavaVersion .VERSION_21
15+ toolchain {
16+ languageVersion.set(JavaLanguageVersion .of(21 ))
17+ }
18+ }
19+
20+ repositories {
21+ maven(" https://jitpack.io" )
22+ }
23+
24+ dependencies {
25+ implementation(" com.github.ben-manes.caffeine:caffeine:3.1.8" )
26+ implementation(project(" :service.generic" ))
27+ implementation(project(" :type.generic" ))
28+ implementation(project(" :commons" ))
29+ implementation(" com.google.code.gson:gson:2.11.0" )
30+ implementation(" com.sparkjava:spark-core:2.9.4" )
31+ }
32+
33+ application {
34+ mainClass.set(" net.swofty.service.api.APIService" )
35+ }
36+
37+ tasks {
38+ named<ShadowJar >(" shadowJar" ) {
39+ archiveBaseName.set(" ServiceAPI" )
40+ archiveClassifier.set(" " )
41+ archiveVersion.set(" " )
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments