blob: 489dee5f5472017859ef59291d6edbb7d575c4ac [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 Kupietz4f6ed422024-03-01 07:27:46 +010017}
18
19
20repositories {
21 // Use Maven Central for resolving dependencies.
22 mavenCentral()
23}
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'
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 Kupietz39475712024-03-01 12:38:05 +010040 testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta4"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010041}
42
43
44application {
45 // Define the main class for the application.
Marc Kupietz1b595992024-03-01 14:54:30 +010046 mainClass = 'de.ids_mannheim.korapxmltools.KorapXml2ConlluKt'
Marc Kupietz4f6ed422024-03-01 07:27:46 +010047}
48
49jar {
50 // Will include every single one of your dependencies, project or not
Marc Kupietzfb0a2ca2024-03-01 12:38:05 +010051 // def lowerCasedName = baseName.toLowerCase()
52 // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1)
Marc Kupietz4f6ed422024-03-01 07:27:46 +010053
54 manifest.attributes(
55 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
Marc Kupietz1b595992024-03-01 14:54:30 +010056 'Main-Class': "de.ids_mannheim.korapxmltools.KorapXml2ConlluKt"
Marc Kupietz4f6ed422024-03-01 07:27:46 +010057 )
Marc Kupietz1b595992024-03-01 14:54:30 +010058 shadowJar {
59 archiveBaseName.set('korapxml2conllu')
60 archiveClassifier.set('')
61 archiveVersion.set('')
62 }
Marc Kupietz4f6ed422024-03-01 07:27:46 +010063}
64
65
66configurations {
67 runtimeLib.extendsFrom implementation
68}