2025-01-12 15:07:15 +00:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
|
2024-12-22 19:39:47 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2025-01-12 15:07:15 +00:00
|
|
|
id 'com.gradleup.shadow' version '9.0.0-beta4'
|
2024-12-22 19:39:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'net.pixtaded'
|
2025-01-12 15:07:15 +00:00
|
|
|
version = projectVersion
|
2024-12-22 19:39:47 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation('org.xerial:sqlite-jdbc:3.47.1.0')
|
2025-01-12 15:07:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2024-12-22 19:39:47 +00:00
|
|
|
}
|