summaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts
blob: 626e43d6b048a28552e16be439de1986bc960b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * This file was generated by the Gradle 'init' task.
 */

plugins {
    // Apply the common convention plugin for shared build configuration between library and application projects.
    id("buildlogic.java-common-conventions")

    // Apply the java-library plugin for API and implementation separation.
    `java-library`
}

val rootDirPath = rootProject.projectDir.absolutePath
var jarFilePath = "${rootDirPath}/repo/app/tuxguitar/tuxguitar-lib/9.99/tuxguitar-lib-9.99.jar"

val javaFile = File(jarFilePath) // Create a File object

if (!javaFile.exists()) {
    logger.warn("The specified JAR file does not exist: $jarFilePath")
} else {
    logger.warn("The specified JAR file does in fact exist: $jarFilePath")
}

val jarFile = files(jarFilePath)

dependencies {
    implementation(jarFile)
}