You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2019/05/31 21:46:21 UTC
[incubator-tuweni] branch master updated: Add ability to push
builds to bintray
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new b156236 Add ability to push builds to bintray
b156236 is described below
commit b156236e7f598447e490049b6958e0d632083cb2
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Fri May 31 14:46:09 2019 -0700
Add ability to push builds to bintray
---
build.gradle | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index ee82f0c..1f939c6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -10,6 +10,10 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
+import java.time.Instant
+import java.time.ZoneId
+import java.time.format.DateTimeFormatter
+import java.time.format.FormatStyle
import java.util.regex.Pattern
import net.ltgt.gradle.errorprone.CheckSeverity
@@ -27,11 +31,11 @@ plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.20'
id 'org.jetbrains.dokka' version '0.9.17'
id 'maven-publish'
+ id 'com.jfrog.bintray' version '1.8.3'
}
description = 'A set of libraries and other tools to aid development of blockchain and other decentralized software in Java and other JVM languages'
-
//////
// Sanity checks
@@ -53,6 +57,9 @@ static String buildTag() {
if (System.getenv('BUILD_RELEASE') == 'true') {
return ''
}
+ if (System.getenv('BUILD_TIMESTAMP') != null) {
+ return DateTimeFormatter.ofPattern("-yyyyMMddHHmmss").withLocale(Locale.US).withZone( ZoneId.systemDefault() ).format(Instant.now())
+ }
return '-SNAPSHOT'
}
@@ -141,6 +148,7 @@ allprojects {
apply plugin: 'kotlin'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
+ apply plugin: 'com.jfrog.bintray'
apply plugin: 'net.ltgt.errorprone'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
@@ -458,6 +466,19 @@ allprojects {
}
tasks.publishMavenDeploymentPublicationToMavenLocal { dependsOn project.tasks.signArchives }
}
+
+ bintray {
+ publications = ['MavenDeployment']
+ user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : 'invalid'
+ key = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : 'invalid'
+ pkg {
+ repo = project.hasProperty('bintrayRepo') ? project.property('bintrayRepo') : 'invalid'
+ name = project.hasProperty('bintrayName') ? project.property('bintrayName') : 'invalid'
+ userOrg = project.hasProperty('bintrayOrg') ? project.property('bintrayOrg') : 'invalid'
+ licenses = ['Apache-2.0']
+ vcsUrl = 'https://github.com/apache/incubator-tuweni.git'
+ }
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org