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 | 1615020 | 2024-03-20 22:13:49 +0100 | [diff] [blame] | 12 | id 'org.jetbrains.kotlin.jvm' version '2.0.0-Beta5' |
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 | 1615020 | 2024-03-20 22:13:49 +0100 | [diff] [blame] | 17 | id ("org.jetbrains.kotlin.kapt") version "2.0.0-Beta5" |
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 | 6181f22 | 2024-03-12 16:59:59 +0100 | [diff] [blame] | 37 | implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 38 | |
| 39 | // This dependency is used by the application. |
Marc Kupietz | a02fc44 | 2024-03-20 22:14:04 +0100 | [diff] [blame] | 40 | implementation 'com.google.guava:guava:33.1.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 | |
| 43 | kapt("info.picocli:picocli-codegen:4.7.5") |
| 44 | implementation ("info.picocli:picocli:4.7.5") |
| 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 | 1615020 | 2024-03-20 22:13:49 +0100 | [diff] [blame] | 51 | testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta5" |
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 | 9da19db | 2024-04-01 11:06:51 +0200 | [diff] [blame] | 55 | implementation 'org.apache.opennlp:opennlp-tools:2.3.2' |
| 56 | implementation 'org.slf4j:slf4j-simple:2.1.0-alpha1' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | |
Marc Kupietz | 9da19db | 2024-04-01 11:06:51 +0200 | [diff] [blame] | 60 | |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 61 | application { |
| 62 | // Define the main class for the application. |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 63 | mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt' |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | jar { |
| 67 | // Will include every single one of your dependencies, project or not |
Marc Kupietz | fb0a2ca | 2024-03-01 12:38:05 +0100 | [diff] [blame] | 68 | // def lowerCasedName = baseName.toLowerCase() |
| 69 | // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1) |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 70 | |
| 71 | manifest.attributes( |
| 72 | 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '), |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 73 | 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt" |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 74 | ) |
Marc Kupietz | 1b59599 | 2024-03-01 14:54:30 +0100 | [diff] [blame] | 75 | shadowJar { |
| 76 | archiveBaseName.set('korapxml2conllu') |
| 77 | archiveClassifier.set('') |
| 78 | archiveVersion.set('') |
| 79 | } |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | |
| 83 | configurations { |
| 84 | runtimeLib.extendsFrom implementation |
| 85 | } |