11apply plugin : ' maven'
22apply plugin : ' maven-publish'
3- apply plugin : ' com.jfrog.bintray'
43apply plugin : ' com.jfrog.artifactory'
5-
6- ext {
7- bintrayUser = resolveProperty( ' BINTRAY_USER' , ' bintrayUser' )
8- bintrayKey = resolveProperty( ' BINTRAY_KEY' , ' bintrayKey' )
9- }
4+ apply plugin : ' com.gradle.plugin-publish'
105
116publishing {
127 publications {
@@ -19,31 +14,6 @@ publishing {
1914 }
2015}
2116
22- bintray {
23- user = bintrayUser
24- key = bintrayKey
25- publications = [' mavenJava' ]
26-
27- pkg {
28- repo = ' maven'
29- name = ' gradle-node-plugin'
30- desc = ' Gradle plugin for executing node scripts.'
31- websiteUrl = ' https://github.com/srs/gradle-node-plugin'
32- issueTrackerUrl = ' https://github.com/srs/gradle-node-plugin/issues'
33- vcsUrl = ' https://github.com/srs/gradle-node-plugin.git'
34- licenses = [' Apache-2.0' ]
35- labels = [' java' , ' gradle' , ' groovy' , ' node' ]
36- publicDownloadNumbers = true
37-
38- version {
39- vcsTag = " v$project . version "
40- attributes = [' gradle-plugin' : [" com.moowork.node:${ project.group} :${ project.name} " ,
41- " com.moowork.grunt:${ project.group} :${ project.name} " ,
42- " com.moowork.gulp:${ project.group} :${ project.name} " ]]
43- }
44- }
45- }
46-
4717artifactoryPublish {
4818 onlyIf { isMaster }
4919 mustRunAfter ' build'
@@ -63,14 +33,33 @@ artifactory {
6333 }
6434}
6535
66- String resolveProperty ( String envVarKey , String projectPropKey )
67- {
68- String propValue = System . getenv()[envVarKey]
36+ pluginBundle {
37+ website = ' https://github.com/srs/gradle-node-plugin '
38+ vcsUrl = ' https://github.com/srs/gradle-node-plugin '
6939
70- if ( propValue )
71- {
72- return propValue
40+ plugins {
41+ nodePlugin {
42+ id = ' com.moowork.node'
43+ displayName = ' Gradle Node Plugin'
44+ description = ' Gradle plugin for executing node scripts.'
45+ tags = [' java' , ' gradle' , ' node' , ' yarn' , ' npm' ]
46+ }
47+ gruntPlugin {
48+ id = ' com.moowork.grunt'
49+ displayName = ' Gradle Grunt Plugin'
50+ description = ' Gradle pluign for executing grunt builds.'
51+ tags = [' java' , ' gradle' , ' node' , ' yarn' , ' npm' , ' grunt' ]
52+ }
53+ gulpPlugin {
54+ id = ' com.moowork.gulp'
55+ displayName = ' Gradle Gulp Plugin'
56+ description = ' Gradle plugin for executing gulp builds.'
57+ tags = [' java' , ' gradle' , ' node' , ' yarn' , ' npm' , ' gulp' ]
58+ }
7359 }
7460
75- hasProperty( projectPropKey ) ? getProperty( projectPropKey ) : null
61+ mavenCoordinates {
62+ groupId = ' com.moowork.gradle'
63+ artifactId = ' gradle-node-plugin'
64+ }
7665}
0 commit comments