added files.
This commit is contained in:
commit
09aab327ea
109 files changed
+5269
No files matched your search
+101
@@ -0,0 +1,101 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version '2.4.21'
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'idea'
|
||||
id 'eclipse'
|
||||
}
|
||||
|
||||
group = 'site.hackery.paramorphism'
|
||||
version = '1.3-beta-hotfix'
|
||||
|
||||
def javaVersion = 17
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
|
||||
implementation 'org.ow2.asm:asm:9.8'
|
||||
implementation 'org.ow2.asm:asm-tree:9.8'
|
||||
implementation 'org.ow2.asm:asm-commons:9.8'
|
||||
implementation 'org.ow2.asm:asm-analysis:9.8'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
|
||||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2'
|
||||
implementation 'org.apache.maven:maven-aether-provider:3.3.9'
|
||||
implementation 'org.eclipse.aether:aether-connector-basic:1.0.2.v20150114'
|
||||
implementation 'org.eclipse.aether:aether-transport-file:1.0.2.v20150114'
|
||||
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(javaVersion)
|
||||
}
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(javaVersion)
|
||||
}
|
||||
|
||||
application {
|
||||
applicationName = 'OpenParamorphism'
|
||||
mainClass = 'site.hackery.paramorphism.ParamorphismMain'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.release = javaVersion
|
||||
options.encoding = 'UTF-8'
|
||||
options.compilerArgs += ['-parameters', '-Xlint:none', '-Xmaxerrs', '4096']
|
||||
}
|
||||
|
||||
tasks.withType(JavaExec).configureEach {
|
||||
javaLauncher = javaToolchains.launcherFor {
|
||||
languageVersion = JavaLanguageVersion.of(javaVersion)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(AbstractArchiveTask).configureEach {
|
||||
preserveFileTimestamps = false
|
||||
reproducibleFileOrder = true
|
||||
}
|
||||
|
||||
tasks.named('test', Test) {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.named('jar', Jar) {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
manifest {
|
||||
attributes(
|
||||
'Main-Class': 'site.hackery.paramorphism.ParamorphismMain',
|
||||
'Implementation-Title': 'OpenParamorphism',
|
||||
'Implementation-Version': project.version)
|
||||
}
|
||||
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA'
|
||||
from {
|
||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('sourcesJar', Jar) {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
|
||||
idea {
|
||||
module {
|
||||
downloadSources = true
|
||||
downloadJavadoc = true
|
||||
}
|
||||
}
|
||||
|
||||
eclipse {
|
||||
classpath {
|
||||
downloadSources = true
|
||||
downloadJavadoc = true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user