GGradle project settings updated
This commit is contained in:
35
build.gradle
35
build.gradle
@ -10,13 +10,14 @@ buildscript {
|
|||||||
|
|
||||||
group = 'biz.redsoft.sample'
|
group = 'biz.redsoft.sample'
|
||||||
|
|
||||||
|
apply plugin: 'idea'
|
||||||
apply plugin: 'application'
|
apply plugin: 'application'
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'ncore'
|
apply plugin: 'ncore'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'biz.redsoft.release'
|
||||||
|
apply plugin: 'biz.redsoft.maven-publish'
|
||||||
|
|
||||||
|
targetCompatibility = 1.8
|
||||||
targetCompatibility = 1.6
|
|
||||||
|
|
||||||
ncore {
|
ncore {
|
||||||
coreVersion = project.properties.'biz.redsoft.ncore.version'
|
coreVersion = project.properties.'biz.redsoft.ncore.version'
|
||||||
@ -37,32 +38,6 @@ run.args = ['client',
|
|||||||
'-config', 'ncore-properties.xml',
|
'-config', 'ncore-properties.xml',
|
||||||
'-config', 'ncore-properties-local.xml']
|
'-config', 'ncore-properties-local.xml']
|
||||||
|
|
||||||
publishing {
|
|
||||||
repositories {
|
|
||||||
project.hasProperty('biz.redsoft.repo.user') && project.hasProperty('biz.redsoft.repo.password') && maven {
|
|
||||||
credentials {
|
|
||||||
username project.'biz.redsoft.repo.user'
|
|
||||||
password project.'biz.redsoft.repo.password'
|
|
||||||
}
|
|
||||||
def suffix = project.version.toString().endsWith('SNAPSHOT') ? 'snapshots' : 'releases'
|
|
||||||
url "http://nexus.red-soft.biz/nexus/content/repositories/${suffix}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
from components.java
|
|
||||||
|
|
||||||
artifact sourceJar
|
|
||||||
artifact updatesJar
|
|
||||||
}
|
|
||||||
mavenJavaGen(MavenPublication) {
|
|
||||||
artifactId "${genJar.baseName}-${genJar.appendix}"
|
|
||||||
artifact genJar
|
|
||||||
artifact genSourceJar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task copyDist(type: Copy) {
|
task copyDist(type: Copy) {
|
||||||
from distZip
|
from distZip
|
||||||
from war
|
from war
|
||||||
@ -81,3 +56,5 @@ release {
|
|||||||
task buildRelease(type: GradleBuild) {
|
task buildRelease(type: GradleBuild) {
|
||||||
tasks = ['clean', 'writeVersion', 'nbackup', 'build', 'copyDist', 'publish']
|
tasks = ['clean', 'writeVersion', 'nbackup', 'build', 'copyDist', 'publish']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
idea { module.scopes.PROVIDED.plus += [configurations.provided] }
|
||||||
|
Reference in New Issue
Block a user