blob: 5c12f695a77e5ad243eac751ba631ca60f408c99 [file] [log] [blame]
Marc Kupietz80324a22024-03-14 21:08:23 +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.
12 id 'org.jetbrains.kotlin.jvm' version '2.0.0-Beta4'
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 '8.1.1'
17 id ("org.jetbrains.kotlin.kapt") version "2.0.0-Beta4"
18}
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'
32 // implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0'
33
34 // This dependency is used by the application.
35 // implementation 'com.google.guava:guava:33.0.0-jre'
36
37
38 kapt("info.picocli:picocli-codegen:4.7.5")
39 implementation ("info.picocli:picocli:4.7.5")
40
41 // 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'
46 testImplementation "org.jetbrains.kotlin:kotlin-test:2.0.0-Beta4"
47}
48
49
50application {
51 // Define the main class for the application.
52 mainClass = 'de.ids_mannheim.korapxmltools.ChangeZipPermissionsKt'
53}
54
55jar {
56 // Will include every single one of your dependencies, project or not
57 // def lowerCasedName = baseName.toLowerCase()
58 // def normalizedName = lowerCasedName.substring(0,1).toUpperCase() + lowerCasedName.substring(1)
59
60 manifest.attributes(
61 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
62 'Main-Class': "de.ids_mannheim.korapxmltools.ChangeZipPermissions"
63 )
64 shadowJar {
65 archiveBaseName.set('changezippermissions')
66 archiveClassifier.set('')
67 archiveVersion.set('')
68 }
69}
70
71
72configurations {
73 runtimeLib.extendsFrom implementation
74}