Skip to content

Instantly share code, notes, and snippets.

@lagergren
Created March 15, 2024 10:40
Show Gist options
  • Save lagergren/7c45edb9a55b2523d77aa75ed0628f23 to your computer and use it in GitHub Desktop.
Save lagergren/7c45edb9a55b2523d77aa75ed0628f23 to your computer and use it in GitHub Desktop.
diff --git a/javatools_backend/build.gradle.kts b/javatools_backend/build.gradle.kts
new file mode 100644
index 000000000..63dea1e2f
--- /dev/null
+++ b/javatools_backend/build.gradle.kts
@@ -0,0 +1,33 @@
+/**
+ * Experimental Javatools backend.
+ */
+
+plugins {
+ alias(libs.plugins.xdk.build.versioning)
+ alias(libs.plugins.xdk.build.java)
+ application
+}
+
+val semanticVersion: SemanticVersion by extra
+
+application {
+ mainClass = "org.xvm.XEC"
+}
+
+val jar by tasks.existing(Jar::class) {
+ manifest {
+ attributes(
+ "Manifest-Version" to "1.0",
+ "Xdk-Version" to semanticVersion.toString(),
+ "Sealed" to "true",
+ "Main-Class" to "org.xvm.XEC",
+ "Name" to "/org/xvm/",
+ "Specification-Title" to "xvm",
+ "Specification-Version" to version,
+ "Specification-Vendor" to "xtclang.org",
+ "Implementation-Title" to "xvm-prototype-backend",
+ "Implementation-Version" to version,
+ "Implementation-Vendor" to "xtclang.org"
+ )
+ }
+}
diff --git a/javatools_backend/javatools-backend.properties b/javatools_backend/javatools-backend.properties
new file mode 100644
index 000000000..3e2aba056
--- /dev/null
+++ b/javatools_backend/javatools-backend.properties
@@ -0,0 +1,6 @@
+# TODO: TEMPORARILY DISABLE JAVAC LINTING / WARNINGS FOR THIS PROJECT, BECAUSE IT *SPEWS* THEM.
+org.xtclang.java.lint=false
+
+# TODO: Temporarily disable checkstyle fail-on-error for this project.
+org.xtclang.build.checkstyle=false
+org.xtclang.build.checkstyle.failOnError=false
diff --git a/javatools_backend/settings.gradle.kts b/javatools_backend/settings.gradle.kts
new file mode 100644
index 000000000..b92dcdd69
--- /dev/null
+++ b/javatools_backend/settings.gradle.kts
@@ -0,0 +1,10 @@
+pluginManagement {
+ includeBuild("../build-logic/settings-plugins")
+ includeBuild("../build-logic/common-plugins")
+}
+
+plugins {
+ id("org.xtclang.build.common")
+}
+
+rootProject.name = "javatools-backend"
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 44d57cd07..c0464fffb 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -34,6 +34,7 @@ gradleEnterprise {
includeBuild("javatools")
includeBuild("javatools_utils")
includeBuild("javatools_unicode")
+includeBuild("javatools_backend")
includeBuild("plugin")
includeBuild("xdk")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment