Merge branch 'master' into 'ncore-sample-1.9'
Merge with master See merge request ncore/ncore-sample!1
This commit is contained in:
17
build.gradle
17
build.gradle
@ -17,6 +17,8 @@ apply plugin: 'application'
|
||||
apply plugin: 'war'
|
||||
apply plugin: 'ncore'
|
||||
|
||||
apply from: "dependencies.gradle"
|
||||
|
||||
targetCompatibility = 1.8
|
||||
|
||||
ncore {
|
||||
@ -42,6 +44,8 @@ dependencies {
|
||||
provided 'javax.servlet:javax.servlet-api:3.1.0'
|
||||
|
||||
testCompile 'org.junit.jupiter:junit-jupiter:5.8.2'
|
||||
runtimeClasspath files(ncoreGenerateControlDataJar)
|
||||
runtimeClasspath files(genJar)
|
||||
}
|
||||
|
||||
// writing build process to a log file
|
||||
@ -91,3 +95,16 @@ task buildRelease(type: GradleBuild) {
|
||||
}
|
||||
|
||||
idea { module.scopes.PROVIDED.plus += [configurations.provided] }
|
||||
|
||||
jar{
|
||||
manifest{
|
||||
attributes(
|
||||
'Main-Class': 'biz.redsoft.ncore.client.MainForm',
|
||||
'Class-Path': configurations.runtimeClasspath.collect { it.name }.join(' ')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
startScripts{
|
||||
project.startScripts.defaultJvmOpts = ['-Dlogback.configurationFile=./config/logback.xml']
|
||||
}
|
Reference in New Issue
Block a user