Add shadowJar instead of application, bump the project's version to 1.0.5
This commit is contained in:
+18
-6
@@ -1,19 +1,31 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'com.gradleup.shadow' version '9.0.0-beta4'
|
||||
}
|
||||
|
||||
group = 'net.pixtaded'
|
||||
version = '1.0.4'
|
||||
version = projectVersion
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'net.pixtaded.crab.Main'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation('org.xerial:sqlite-jdbc:3.47.1.0')
|
||||
}
|
||||
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
tasks.named('jar', Jar) {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'net.pixtaded.crab.Main'
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('shadowJar', ShadowJar) {
|
||||
archiveBaseName = 'crab'
|
||||
archiveClassifier = ''
|
||||
archiveVersion = projectVersion
|
||||
}
|
||||
Reference in New Issue
Block a user