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 | 3947571 | 2024-03-01 12:38:05 +0100 | [diff] [blame] | 12 | id 'org.jetbrains.kotlin.jvm' version '2.0.0-Beta4' |
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' |
| 16 | id 'com.github.johnrengelman.shadow' version '7.1.2' |
| 17 | } |
| 18 | |
| 19 | |
| 20 | repositories { |
| 21 | // Use Maven Central for resolving dependencies. |
| 22 | mavenCentral() |
| 23 | } |
| 24 | |
| 25 | dependencies { |
| 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' |
| 31 | |
| 32 | // This dependency is used by the application. |
| 33 | implementation 'com.google.guava:guava:33.0.0-jre' |
| 34 | |
| 35 | // Use the Kotlin test library. |
| 36 | testImplementation 'org.jetbrains.kotlin:kotlin-test' |
| 37 | |
| 38 | // Use the Kotlin JUnit integration. |
| 39 | testImplementation 'org.jetbrains.kotlin:kotlin-test-junit' |
Marc Kupietz | 3947571 | 2024-03-01 12:38:05 +0100 | [diff] [blame] | 40 | testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta4" |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | |
| 44 | application { |
| 45 | // Define the main class for the application. |
| 46 | mainClass = 'de.ids_mannheim.korapxml2conllu.AppKt' |
| 47 | } |
| 48 | |
| 49 | jar { |
| 50 | // Will include every single one of your dependencies, project or not |
Marc Kupietz | fb0a2ca | 2024-03-01 12:38:05 +0100 | [diff] [blame] | 51 | // def lowerCasedName = baseName.toLowerCase() |
| 52 | // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1) |
Marc Kupietz | 4f6ed42 | 2024-03-01 07:27:46 +0100 | [diff] [blame] | 53 | |
| 54 | manifest.attributes( |
| 55 | 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '), |
| 56 | 'Main-Class': "de.ids_mannheim.korapxml2conllu.AppKt" |
| 57 | ) |
| 58 | |
| 59 | } |
| 60 | |
| 61 | |
| 62 | configurations { |
| 63 | runtimeLib.extendsFrom implementation |
| 64 | } |