@@ -27,18 +27,23 @@ buildscript {
2727 jcenter()
2828 }
2929
30- dependencies {
31- classpath ' com.palantir:jacoco-coverage:0.4.0'
32- classpath " com.smokejumperit.gradle.license:Gradle-License-Report:0.0.2"
33- classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
34- }
30+ dependencies {
31+ classpath ' com.palantir:jacoco-coverage:0.4.0'
32+ classpath " com.smokejumperit.gradle.license:Gradle-License-Report:0.0.2"
33+ classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
34+ }
3535}
3636
37- apply plugin : ' java'
38- apply plugin : ' maven'
39- apply plugin : ' com.palantir.jacoco-coverage'
40- apply plugin : ' maven-publish'
41- apply plugin : ' com.jfrog.bintray'
37+ allprojects {
38+ repositories {
39+ jcenter()
40+ }
41+ apply plugin : ' java'
42+ apply plugin : ' maven'
43+ apply plugin : ' maven-publish'
44+ apply plugin : ' com.palantir.jacoco-coverage'
45+ apply plugin : ' com.jfrog.bintray'
46+ }
4247
4348group = ' com.sybit'
4449version = getVersionName()
@@ -110,12 +115,15 @@ task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
110115
111116publishing {
112117 publications {
113- mavenJava (MavenPublication ) {
118+ MyPublication (MavenPublication ) {
114119 if (plugins. hasPlugin(' war' )) {
115120 from components. web
116121 } else {
117122 from components. java
118123 }
124+ groupId group
125+ artifactId rootProject. name
126+ version getVersionName()
119127
120128 artifact sourcesJar
121129 artifact javadocJar
@@ -127,7 +135,7 @@ bintray {
127135 user = project. hasProperty(' bintrayUser' ) ? project. property(' bintrayUser' ) : System . getenv(' BINTRAY_USER' )
128136 key = project. hasProperty(' bintrayApiKey' ) ? project. property(' bintrayApiKey' ) : System . getenv(' BINTRAY_API_KEY' )
129137
130- publications = [' mavenJava ' ]
138+ publications = [' MyPublication ' ]
131139 // configurations = ['archives']
132140
133141 dryRun = false // Whether to run this as dry-run, without deploying
0 commit comments