2024-03-26 20:38:55 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'application'
|
2024-04-15 18:24:52 +02:00
|
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
2024-03-26 20:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-04-15 18:24:52 +02:00
|
|
|
implementation group: 'com.sparkjava', name: 'spark-core', version: '2.9.1'
|
|
|
|
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
|
|
|
|
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.19'
|
|
|
|
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.30.1'
|
|
|
|
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.2'
|
|
|
|
testImplementation group: 'junit', name: 'junit', version: '4.13'
|
|
|
|
testImplementation group: 'org.skyscreamer', name: 'jsonassert', version: '1.5.0'
|
|
|
|
testImplementation group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
|
2024-03-26 20:38:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.krusty'
|
|
|
|
version = '1.0'
|
|
|
|
description = 'Krusty'
|
|
|
|
sourceCompatibility = '11'
|
|
|
|
targetCompatibility = '11'
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClassName = "krusty.ServerMain"
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes 'Implementation-Title': 'KrustyServer',
|
|
|
|
'Implementation-Version': version,
|
|
|
|
'Main-Class': 'krusty.Main'
|
|
|
|
}
|
|
|
|
}
|