blob: 31cfdc95e8c3fb9ddd4e7541e6a87355591f2ca8 [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 Kupietz39475712024-03-01 12:38:05 +010012 id 'org.jetbrains.kotlin.jvm' version '2.0.0-Beta4'
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 Kupietz31122362024-03-02 11:13:37 +010017 id ("org.jetbrains.kotlin.kapt") version "2.0.0-Beta4"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010018}
19
20
21repositories {
22 // Use Maven Central for resolving dependencies.
23 mavenCentral()
24}
25
26dependencies {
27 // Align versions of all Kotlin components
28 implementation platform('org.jetbrains.kotlin:kotlin-bom')
29
30 // Use the Kotlin JDK 8 standard library.
31 implementation 'org.jetbrains.kotlin:kotlin-stdlib'
Marc Kupietz6181f222024-03-12 16:59:59 +010032 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010033
34 // This dependency is used by the application.
35 implementation 'com.google.guava:guava:33.0.0-jre'
36
Marc Kupietz31122362024-03-02 11:13:37 +010037
38 kapt("info.picocli:picocli-codegen:4.7.5")
39 implementation ("info.picocli:picocli:4.7.5")
40
Marc Kupietz4f6ed422024-03-01 07:27:46 +010041 // Use the Kotlin test library.
42 testImplementation 'org.jetbrains.kotlin:kotlin-test'
43
44 // Use the Kotlin JUnit integration.
45 testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
Marc Kupietz39475712024-03-01 12:38:05 +010046 testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta4"
Marc Kupietz0c6e8772024-03-19 07:03:07 +010047
48 implementation fileTree(dir: '../libs', include: ['*.jar'])
49 //implementation file('libs/marmot.jar')
Marc Kupietz4f6ed422024-03-01 07:27:46 +010050}
51
52
53application {
54 // Define the main class for the application.
Marc Kupietz1b595992024-03-01 14:54:30 +010055 mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010056}
57
58jar {
59 // Will include every single one of your dependencies, project or not
Marc Kupietzfb0a2ca2024-03-01 12:38:05 +010060 // def lowerCasedName = baseName.toLowerCase()
61 // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1)
Marc Kupietz4f6ed422024-03-01 07:27:46 +010062
63 manifest.attributes(
64 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
Marc Kupietz1b595992024-03-01 14:54:30 +010065 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010066 )
Marc Kupietz1b595992024-03-01 14:54:30 +010067 shadowJar {
68 archiveBaseName.set('korapxml2conllu')
69 archiveClassifier.set('')
70 archiveVersion.set('')
71 }
Marc Kupietz4f6ed422024-03-01 07:27:46 +010072}
73
74
75configurations {
76 runtimeLib.extendsFrom implementation
77}