some attempts to make the gradle build faster

This commit is contained in:
Irmen de Jong 2019-07-08 12:26:15 +02:00
parent 5ed0893d96
commit e84bb8d94a
2 changed files with 32 additions and 28 deletions

View File

@ -29,7 +29,8 @@ dependencies {
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
// freeCompilerArgs += "-XXLanguage:+NewInference"
verbose = true
freeCompilerArgs += "-XXLanguage:+NewInference -verbose"
}
}
@ -49,36 +50,36 @@ sourceSets {
}
}
startScripts.enabled = false
//application {
// mainClassName = 'prog8.CompilerMainKt'
// applicationName = 'p8compile'
//}
application {
mainClassName = 'prog8.CompilerMainKt'
applicationName = 'p8compile'
}
//task p8vmScript(type: CreateStartScripts) {
// mainClassName = "prog8.StackVmMainKt"
// applicationName = "p8vm"
// outputDir = new File(project.buildDir, 'scripts')
// classpath = jar.outputs.files + project.configurations.runtime
//}
task p8vmScript(type: CreateStartScripts) {
mainClassName = "prog8.StackVmMainKt"
applicationName = "p8vm"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
//applicationDistribution.into("bin") {
// from(p8vmScript)
// fileMode = 0755
//}
applicationDistribution.into("bin") {
from(p8vmScript)
fileMode = 0755
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'prog8.CompilerMainKt'
}
archiveBaseName = 'prog8compiler'
destinationDirectory = rootProject.projectDir
from {
project.configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
//task fatJar(type: Jar) {
// manifest {
// attributes 'Main-Class': 'prog8.CompilerMainKt'
// }
// archiveBaseName = 'prog8compiler'
// destinationDirectory = rootProject.projectDir
// from {
// project.configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
// }
// with jar
//}
// build.finalizedBy(fatJar)

View File

@ -1,2 +1,5 @@
org.gradle.caching=true
org.gradle.console=rich
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048M
org.gradle.daemon=true