Maven: remove unneeded properties
Those are determined automatically by gradle, no need to specify explicitly.
This commit is contained in:
parent
5c6deeb5ab
commit
8797bda5ef
@ -5,8 +5,8 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
String mavenGroupId = 'com.jme3'
|
group = 'com.jme3'
|
||||||
String mavenVersion = jmeVersion + '-' + jmeVersionTag //'-SNAPSHOT'
|
version = jmeVersion + '-' + jmeVersionTag
|
||||||
|
|
||||||
sourceCompatibility = '1.6'
|
sourceCompatibility = '1.6'
|
||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
@ -23,11 +23,6 @@ dependencies {
|
|||||||
testCompile group: 'junit', name: 'junit', version: '4.10'
|
testCompile group: 'junit', name: 'junit', version: '4.10'
|
||||||
}
|
}
|
||||||
|
|
||||||
String mavenArtifactId = name
|
|
||||||
|
|
||||||
group = mavenGroupId
|
|
||||||
version = mavenVersion
|
|
||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
failOnError = false
|
failOnError = false
|
||||||
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
||||||
@ -60,14 +55,6 @@ artifacts {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(install.repositories.mavenInstaller) {
|
|
||||||
pom.project {
|
|
||||||
groupId = mavenGroupId
|
|
||||||
artifactId = mavenArtifactId
|
|
||||||
version = mavenVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task createFolders(description: 'Creates the source folders if they do not exist.') doLast {
|
task createFolders(description: 'Creates the source folders if they do not exist.') doLast {
|
||||||
// sourceSets*.allSource*.srcDirs*.each { File srcDir ->
|
// sourceSets*.allSource*.srcDirs*.each { File srcDir ->
|
||||||
// if (!srcDir.isDirectory()) {
|
// if (!srcDir.isDirectory()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user