CatgirlIntelligenceAgency/build.gradle
Viktor Lofgren 6d33c386fc Merge changes from experimental branch (#132)
Co-authored-by: Viktor Lofgren <vlofgren@marginalia.nu>
Reviewed-on: https://git.marginalia.nu/marginalia/marginalia.nu/pulls/132
2023-01-08 11:11:44 +01:00

63 lines
1.3 KiB
Groovy

plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
group 'nu.marginalia'
version 'SNAPSHOT'
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
mavenLocal()
maven { url "https://artifactory.cronapp.io/public-release/" }
maven { url "https://repo1.maven.org/maven2/" }
maven { url "https://www2.ph.ed.ac.uk/maven2/" }
maven { url "https://jitpack.io/" }
exclusiveContent {
forRepository {
maven {
url = uri("https://jitpack.io")
}
}
filter {
// Only use JitPack for the `gson-record-type-adapter-factory` library
includeModule("com.github.Marcono1234", "gson-record-type-adapter-factory")
}
}
}
shadowJar {
zip64 true
}
jar {
manifest {
attributes 'Main-Class': "nu.marginalia.wmsa.configuration.ServiceDescriptor"
}
from {
configurations.shadow.collect { it.isDirectory() ? it : zipTree(it) }
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {
implementation project(':marginalia_nu')
}
task version() { //
}
test {
maxParallelForks = 16
forkEvery = 1
maxHeapSize = "8G"
useJUnitPlatform {
excludeTags "nobuild"
}
}