Зафиксировать рабочий BreathMonitor v1 и сервер
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
||||
}
|
||||
|
||||
group = 'me.shineup'
|
||||
version = '1.0.0'
|
||||
|
||||
repositories { mavenCentral() }
|
||||
|
||||
java {
|
||||
toolchain { languageVersion = JavaLanguageVersion.of(17) }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.xerial:sqlite-jdbc:3.50.3.0'
|
||||
implementation 'org.slf4j:slf4j-nop:2.0.16'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java.srcDirs = ['.']
|
||||
java.includes = ['BreathServer.java']
|
||||
}
|
||||
}
|
||||
|
||||
application { mainClass = 'BreathServer' }
|
||||
tasks.jar { enabled = false }
|
||||
|
||||
shadowJar {
|
||||
archiveBaseName = 'breathmonitor'
|
||||
archiveVersion = '1.0.0'
|
||||
archiveClassifier = ''
|
||||
mergeServiceFiles()
|
||||
manifest { attributes 'Main-Class': 'BreathServer' }
|
||||
}
|
||||
|
||||
tasks.build { dependsOn tasks.shadowJar }
|
||||
Reference in New Issue
Block a user