From 28f938d39a80f34eb3cca54a232bcfdb17c2bea2 Mon Sep 17 00:00:00 2001 From: uvok Date: Tue, 8 Jul 2025 20:51:28 +0200 Subject: Add back gradle --- .../buildlogic.java-library-conventions.gradle.kts | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts (limited to 'buildSrc/src/main/kotlin/buildlogic.java-library-conventions.gradle.kts') 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) +} -- cgit v1.2.3