2 ext.kotlinVersion = '1.9.20'
8 classpath group: "org.ajoberstar", name: "gradle-git", version: "1.1.0"
14 id('org.jetbrains.kotlin.jvm') version '1.9.20'
18 apply plugin: "jacoco"
27 group = "net.pterodactylus"
30 sourceCompatibility = 1.8
31 targetCompatibility = 1.8
39 implementation group: "org.jetbrains.kotlin", name: "kotlin-stdlib", version: kotlinVersion
40 implementation group: "com.google.guava", name: "guava", version: "14.0-rc1"
41 implementation group: "log4j", name: "log4j", version: "1.2.17"
42 implementation group: "org.apache.httpcomponents", name: "httpclient", version: "4.4"
43 implementation group: "org.jsoup", name: "jsoup", version: "1.16.1"
44 implementation group: "javax.mail", name: "mail", version: "1.4.6-rc1"
45 implementation group: "org.apache.commons", name: "commons-lang3", version: "3.1"
46 implementation group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.16.1"
47 implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.16.1'
48 implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: '2.16.1'
49 implementation group: "com.google.inject", name: "guice", version: "7.0.0"
50 implementation group: "org.jetbrains.kotlinx", name: "kotlinx-html-jvm", version: "0.11.0"
51 implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
53 testImplementation group: "junit", name: "junit", version: "4.13.2"
54 testImplementation group: "org.hamcrest", name: "hamcrest-library", version: "1.3"
55 testImplementation group: "org.mockito", name: "mockito-core", version: "1.9.5"
58 task fatJar(type: Jar) {
59 baseName = project.name + "-all"
62 "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
65 from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
66 from { sourceSets.generated.resources.srcDirs }
71 task createVersion() {
75 srcDir "src/generated/resources"
79 processResources.dependsOn(createVersion)
83 import org.ajoberstar.grgit.Grgit
86 def gitRepo = Grgit.open(projectDir)
87 version = gitRepo.describe()
88 new File("src/generated/resources").mkdirs()
89 new File("src/generated/resources/version.txt").withWriter() { it.write(version) }
94 classpath sourceSets.generated.output
99 toolVersion = "0.7.6.201602180812"
102 /* vim: set ts=4 sw=4 et: */