blob: 2729dbd1de26f48de951ac5561925a6456090535 [file] [log] [blame]
Marc Kupietz4f6ed422024-03-01 07:27:46 +01001/*
2 * This file was generated by the Gradle 'init' task.
3 *
4 * This generated file contains a sample Kotlin application project to get you started.
5 * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
6 * User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html
7 */
8
9
10plugins {
11 // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
Marc Kupietz916bdfe2024-09-20 09:02:57 +020012 id 'org.jetbrains.kotlin.jvm' version '2.0.20'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010013
14 // Apply the application plugin to add support for building a CLI application in Java.
15 id 'application'
Marc Kupietz1b595992024-03-01 14:54:30 +010016 id 'com.github.johnrengelman.shadow' version '8.1.1'
Marc Kupietz916bdfe2024-09-20 09:02:57 +020017 id ("org.jetbrains.kotlin.kapt") version "2.0.20"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010018}
19
Marc Kupietz4f6ed422024-03-01 07:27:46 +010020repositories {
Marc Kupietz4f6ed422024-03-01 07:27:46 +010021 mavenCentral()
Marc Kupietz56a45562024-03-20 20:18:08 +010022 maven { url 'https://jitpack.io' }
Marc Kupietz4f6ed422024-03-01 07:27:46 +010023}
24
Marc Kupietz47b43c32024-03-27 20:43:32 +010025test {
26 minHeapSize = "1000m" // initial heap size
27 maxHeapSize = "8000m" // maximum heap size
28 jvmArgs '-XX:MaxMetaspaceSize=8000m' // mem argument for the test JVM
29}
30
Marc Kupietz4f6ed422024-03-01 07:27:46 +010031dependencies {
32 // Align versions of all Kotlin components
33 implementation platform('org.jetbrains.kotlin:kotlin-bom')
34
35 // Use the Kotlin JDK 8 standard library.
36 implementation 'org.jetbrains.kotlin:kotlin-stdlib'
Marc Kupietz916bdfe2024-09-20 09:02:57 +020037 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010038
39 // This dependency is used by the application.
Marc Kupietz916bdfe2024-09-20 09:02:57 +020040 implementation 'com.google.guava:guava:33.3.0-jre'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010041
Marc Kupietz31122362024-03-02 11:13:37 +010042
Marc Kupietz916bdfe2024-09-20 09:02:57 +020043 kapt("info.picocli:picocli-codegen:4.7.6")
44 implementation ("info.picocli:picocli:4.7.6")
Marc Kupietz31122362024-03-02 11:13:37 +010045
Marc Kupietz4f6ed422024-03-01 07:27:46 +010046 // Use the Kotlin test library.
47 testImplementation 'org.jetbrains.kotlin:kotlin-test'
48
49 // Use the Kotlin JUnit integration.
50 testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
Marc Kupietz916bdfe2024-09-20 09:02:57 +020051 testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.20"
Marc Kupietz0c6e8772024-03-19 07:03:07 +010052
Marc Kupietz1465ce22024-03-26 09:51:17 +010053 implementation 'com.github.kupietz:cistern:v1.0.4'
Marc Kupietzaf682a42024-03-22 06:51:55 +010054 implementation 'org.maltparser:maltparser:1.9.2'
Marc Kupietz916bdfe2024-09-20 09:02:57 +020055 implementation 'org.apache.opennlp:opennlp-tools:2.3.3'
Marc Kupietz9da19db2024-04-01 11:06:51 +020056 implementation 'org.slf4j:slf4j-simple:2.1.0-alpha1'
Marc Kupietz916bdfe2024-09-20 09:02:57 +020057 implementation 'org.apache.ant:ant:1.10.15'
Marc Kupietza92bacb2024-04-06 20:26:05 +020058
Marc Kupietz4f6ed422024-03-01 07:27:46 +010059}
60
61
Marc Kupietz9da19db2024-04-01 11:06:51 +020062
Marc Kupietz4f6ed422024-03-01 07:27:46 +010063application {
64 // Define the main class for the application.
Marc Kupietz1b595992024-03-01 14:54:30 +010065 mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010066}
67
68jar {
69 // Will include every single one of your dependencies, project or not
Marc Kupietzfb0a2ca2024-03-01 12:38:05 +010070 // def lowerCasedName = baseName.toLowerCase()
71 // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1)
Marc Kupietz4f6ed422024-03-01 07:27:46 +010072
73 manifest.attributes(
74 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
Marc Kupietz1b595992024-03-01 14:54:30 +010075 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010076 )
Marc Kupietz1b595992024-03-01 14:54:30 +010077 shadowJar {
78 archiveBaseName.set('korapxml2conllu')
79 archiveClassifier.set('')
80 archiveVersion.set('')
81 }
Marc Kupietz4f6ed422024-03-01 07:27:46 +010082}
83
84
85configurations {
86 runtimeLib.extendsFrom implementation
87}