Skip to content

Commit

Permalink
[RAC-6591] Release both version number and snapshot tagged packages (#11
Browse files Browse the repository at this point in the history
)

* correct gradle build script

* To automatically close and release smi-lib jar
  • Loading branch information
AlaricChan authored and lanchongyizu committed Jul 16, 2018
1 parent 8e4e49b commit 00274cc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2018 DELL Inc. or its subsidiaries. All Rights Reserved.

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.sonarqube'
Expand All @@ -7,6 +9,7 @@ apply plugin: 'com.jfrog.artifactory'
apply plugin: 'signing'
apply plugin: 'maven'
//apply plugin: 'nebula.lint'
apply plugin: 'io.codearte.nexus-staging'

sourceCompatibility = 1.8
version = "${version}"
Expand All @@ -28,6 +31,7 @@ buildscript {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.1"
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1"
//classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
}
}

Expand Down Expand Up @@ -55,6 +59,11 @@ javadoc {
}
}

task snapshotJar(type: Jar){
baseName = archivesBaseName
version = '1.0-SNAPSHOT'
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
Expand Down Expand Up @@ -146,7 +155,7 @@ uploadArchives {
}

artifacts {
archives javadocJar, sourcesJar
archives javadocJar, sourcesJar, snapshotJar
}

signing {
Expand Down

0 comments on commit 00274cc

Please sign in to comment.