Шаблон переведён на gradle 9 и плагин ncore-gradle 4

This commit is contained in:
2025-09-19 15:42:19 +03:00
parent c6c7da53fa
commit 079c5a8074
5 changed files with 29 additions and 27 deletions

View File

@ -1,5 +1,5 @@
plugins {
id 'nu.studer.credentials' version('1.0.4')
id 'nu.studer.credentials' version('1.0.7')
id 'idea'
id 'eclipse'
id 'application'
@ -9,7 +9,14 @@ plugins {
id 'maven-publish'
}
targetCompatibility = 1.8
java {
withSourcesJar()
sourceCompatibility = project.properties.'java.version' ?: 17
}
test {
failOnNoDiscoveredTests = false
}
ncore {
coreVersion = project.properties.'biz.redsoft.ncore.version'
@ -34,12 +41,11 @@ repositories {
}
dependencies {
implementation 'javax.servlet:javax.servlet-api:3.1.0'
testCompileClasspath 'org.junit.jupiter:junit-jupiter:5.8.2'
testCompileOnly 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.apache.tomcat.embed:tomcat-embed-core:9.0.76'
testImplementation 'org.apache.tomcat.embed:tomcat-embed-jasper:9.0.76'
runtimeClasspath files(ncoreGenerateControlDataJar)
runtimeClasspath files(genJar)
runtimeOnly files(ncoreGenerateControlDataJar)
runtimeOnly files(genJar)
}
@ -70,7 +76,7 @@ gradle.services.get(LoggingOutputInternal).addStandardErrorListener(new Standard
})
// --------------------- BUILD LOG SETTINGS ----------------------
run.args = ['client',
run.args += ['client',
'-config', 'ncore-properties.xml',
'-config', 'ncore-properties-local.xml']