diff options
Diffstat (limited to 'buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts')
-rw-r--r-- | buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts b/buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts new file mode 100644 index 0000000..626e43d --- /dev/null +++ b/buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts @@ -0,0 +1,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) +} |