Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | plugins { |
| 11 | // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin. |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 12 | id 'org.jetbrains.kotlin.jvm' version '2.0.20' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 13 | |
| 14 | // Apply the application plugin to add support for building a CLI application in Java. |
| 15 | id 'application' |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 16 | id 'com.github.johnrengelman.shadow' version '8.1.1' |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 17 | id ("org.jetbrains.kotlin.kapt") version "2.0.20" |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 18 | } |
| 19 | |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 20 | repositories { |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 21 | mavenCentral() |
Marc Kupietz | 56a4556 | 2024-03-20 20:18:08 +0100 | [diff] [blame] | 22 | maven { url 'https://jitpack.io' } |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 23 | } |
| 24 | |
Marc Kupietz | 47b43c3 | 2024-03-27 20:43:32 +0100 | [diff] [blame] | 25 | test { |
| 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 Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 31 | dependencies { |
| 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 Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 37 | implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 38 | |
| 39 | // This dependency is used by the application. |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 40 | implementation 'com.google.guava:guava:33.3.0-jre' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 41 | |
Marc Kupietz | 3112236 | 2024-03-02 11:13:37 +0100 | [diff] [blame] | 42 | |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 43 | kapt("info.picocli:picocli-codegen:4.7.6") |
| 44 | implementation ("info.picocli:picocli:4.7.6") |
Marc Kupietz | 3112236 | 2024-03-02 11:13:37 +0100 | [diff] [blame] | 45 | |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 46 | // 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 Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 51 | testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.20" |
Marc Kupietz | 0c6e877 | 2024-03-19 07:03:07 +0100 | [diff] [blame] | 52 | |
Marc Kupietz | 1465ce2 | 2024-03-26 09:51:17 +0100 | [diff] [blame] | 53 | implementation 'com.github.kupietz:cistern:v1.0.4' |
Marc Kupietz | af682a4 | 2024-03-22 06:51:55 +0100 | [diff] [blame] | 54 | implementation 'org.maltparser:maltparser:1.9.2' |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 55 | implementation 'org.apache.opennlp:opennlp-tools:2.3.3' |
Marc Kupietz | 9da19db | 2024-04-01 11:06:51 +0200 | [diff] [blame] | 56 | implementation 'org.slf4j:slf4j-simple:2.1.0-alpha1' |
Marc Kupietz | 916bdfe | 2024-09-20 09:02:57 +0200 | [diff] [blame] | 57 | implementation 'org.apache.ant:ant:1.10.15' |
Marc Kupietz | a92bacb | 2024-04-06 20:26:05 +0200 | [diff] [blame] | 58 | |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | |
Marc Kupietz | 9da19db | 2024-04-01 11:06:51 +0200 | [diff] [blame] | 62 | |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 63 | application { |
| 64 | // Define the main class for the application. |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 65 | mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | jar { |
| 69 | // Will include every single one of your dependencies, project or not |
Marc Kupietz | fb0a2ca | 2024-03-01 12:38:05 +0100 | [diff] [blame] | 70 | // def lowerCasedName = baseName.toLowerCase() |
| 71 | // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1) |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 72 | |
| 73 | manifest.attributes( |
| 74 | 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '), |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 75 | 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt" |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 76 | ) |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 77 | shadowJar { |
| 78 | archiveBaseName.set('korapxml2conllu') |
| 79 | archiveClassifier.set('') |
| 80 | archiveVersion.set('') |
| 81 | } |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | |
| 85 | configurations { |
| 86 | runtimeLib.extendsFrom implementation |
| 87 | } |