blob: 7c2b5e1b21b8f5f4538a3c3e64e3f0d87e2f3ca6 [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 Kupietz16150202024-03-20 22:13:49 +010012 id 'org.jetbrains.kotlin.jvm' version '2.0.0-Beta5'
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 Kupietz16150202024-03-20 22:13:49 +010017 id ("org.jetbrains.kotlin.kapt") version "2.0.0-Beta5"
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
25dependencies {
26 // Align versions of all Kotlin components
27 implementation platform('org.jetbrains.kotlin:kotlin-bom')
28
29 // Use the Kotlin JDK 8 standard library.
30 implementation 'org.jetbrains.kotlin:kotlin-stdlib'
Marc Kupietz6181f222024-03-12 16:59:59 +010031 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010032
33 // This dependency is used by the application.
Marc Kupietza02fc442024-03-20 22:14:04 +010034 implementation 'com.google.guava:guava:33.1.0-jre'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010035
Marc Kupietz31122362024-03-02 11:13:37 +010036
37 kapt("info.picocli:picocli-codegen:4.7.5")
38 implementation ("info.picocli:picocli:4.7.5")
39
Marc Kupietz4f6ed422024-03-01 07:27:46 +010040 // Use the Kotlin test library.
41 testImplementation 'org.jetbrains.kotlin:kotlin-test'
42
43 // Use the Kotlin JUnit integration.
44 testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
Marc Kupietz16150202024-03-20 22:13:49 +010045 testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta5"
Marc Kupietz0c6e8772024-03-19 07:03:07 +010046
Marc Kupietz56a45562024-03-20 20:18:08 +010047 implementation 'com.github.kupietz:cistern:v1.0.2'
Marc Kupietzaf682a42024-03-22 06:51:55 +010048 implementation 'org.maltparser:maltparser:1.9.2'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010049}
50
51
52application {
53 // Define the main class for the application.
Marc Kupietz1b595992024-03-01 14:54:30 +010054 mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010055}
56
57jar {
58 // Will include every single one of your dependencies, project or not
Marc Kupietzfb0a2ca2024-03-01 12:38:05 +010059 // def lowerCasedName = baseName.toLowerCase()
60 // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1)
Marc Kupietz4f6ed422024-03-01 07:27:46 +010061
62 manifest.attributes(
63 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
Marc Kupietz1b595992024-03-01 14:54:30 +010064 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010065 )
Marc Kupietz1b595992024-03-01 14:54:30 +010066 shadowJar {
67 archiveBaseName.set('korapxml2conllu')
68 archiveClassifier.set('')
69 archiveVersion.set('')
70 }
Marc Kupietz4f6ed422024-03-01 07:27:46 +010071}
72
73
74configurations {
75 runtimeLib.extendsFrom implementation
76}