j2s/repl/build.gradle.kts
TopchetoEU 947b2820af
All checks were successful
tagged-release / Tagged Release (push) Successful in 3m41s
build: split up into multiple projects, use kotlin DLS
2025-01-10 04:06:24 +02:00

52 lines
1.3 KiB
Plaintext

plugins {
id("common-java");
id("com.gradleup.shadow") version "9.0.0-beta4";
}
description = "A simple REPL for the interpreter, can be used for simple prototyping";
repositories {
mavenCentral();
}
dependencies {
annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:0.4.2");
compileOnly("com.github.bsideup.jabel:jabel-javac-plugin:0.4.2");
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2");
testRuntimeOnly("org.junit.platform:junit-platform-launcher");
implementation(project(":common"));
implementation(project(":compilation"));
implementation(project(":runtime"));
implementation(project(":lib"));
}
tasks.processResources {
filesMatching("metadata.json", {
expand(
"version" to properties["project_version"],
"name" to properties["project_name"],
);
});
}
tasks.test {
useJUnitPlatform();
}
tasks.jar {
dependsOn("shadowJar");
manifest {
attributes(
"Main-Class" to properties["main_class"],
// 'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
// 'Build-Branch': versioning.info.branch,
// 'Build-Revision': versioning.info.commit,
// 'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
// 'Build-Author': 'TopchetoEU',
);
}
}