Skip to content

Commit

Permalink
Updated build to use bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
Sten Roger Sandvik committed Mar 18, 2019
1 parent 6f8bd0a commit eb628ff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
3 changes: 1 addition & 2 deletions gradle/buildscript.gradle
Expand Up @@ -6,7 +6,6 @@ repositories {
}

dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0'
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.6'
}
50 changes: 23 additions & 27 deletions gradle/publishing.gradle
@@ -1,7 +1,7 @@
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'com.jfrog.bintray'

ext {
bintrayUser = resolveProperty( 'BINTRAY_USER', 'bintrayUser' )
Expand Down Expand Up @@ -38,34 +38,30 @@ artifactory {
}
}

pluginBundle {
website = 'https://github.com/srs/gradle-node-plugin'
vcsUrl = 'https://github.com/srs/gradle-node-plugin'
bintray {
user = bintrayUser
key = bintrayKey
publish = true
publications = ['mavenJava']

plugins {
nodePlugin {
id = 'com.moowork.node'
displayName = 'Gradle Node Plugin'
description = 'Gradle plugin for executing node scripts.'
tags = ['java', 'gradle', 'node', 'yarn', 'npm']
}
gruntPlugin {
id = 'com.moowork.grunt'
displayName = 'Gradle Grunt Plugin'
description = 'Gradle pluign for executing grunt builds.'
tags = ['java', 'gradle', 'node', 'yarn', 'npm', 'grunt']
}
gulpPlugin {
id = 'com.moowork.gulp'
displayName = 'Gradle Gulp Plugin'
description = 'Gradle plugin for executing gulp builds.'
tags = ['java', 'gradle', 'node', 'yarn', 'npm', 'gulp']
}
}
pkg {
name = "${project.name}"
repo = 'maven'
userOrg = 'srs'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/srs/gradle-node-plugin.git'
websiteUrl = "https://github.com/srs/gradle-node-plugin"
issueTrackerUrl = "https://github.com/srs/gradle-node-plugin/issues"
githubRepo = "srs/gradle-node-plugin"
labels = ['java', 'gradle', 'node', 'yarn', 'npm', 'grunt', 'gulp']
desc = "Gradle plugin for executing node scripts."

mavenCoordinates {
groupId = 'com.moowork.gradle'
artifactId = 'gradle-node-plugin'
version {
vcsTag = "v${project.version}"
attributes = ['gradle-plugin': ["com.moowork.node:${project.group}:${project.name}",
"com.moowork.grunt:${project.group}:${project.name}",
"com.moowork.gulp:${project.group}:${project.name}"]]
}
}
}

Expand Down

0 comments on commit eb628ff

Please sign in to comment.