11
22buildscript {
33 repositories {
4- mavenLocal()
5- mavenCentral()
64 jcenter()
75 maven { url ' http://repo.enonic.com/public' }
8- maven { url ' https://plugins.gradle.org/m2/' }
96 }
107
118 dependencies {
129 classpath " com.enonic.xp:gradle-plugin:${ xpVersion} "
1310 classpath ' com.moowork.gradle:gradle-gulp-plugin:0.11'
11+ classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
1412 }
1513}
1614
1715apply plugin : ' maven'
16+ apply plugin : ' maven-publish'
1817apply plugin : ' com.enonic.xp.app'
1918apply plugin : ' com.moowork.gulp'
19+ apply plugin : ' com.jfrog.bintray'
2020
2121app {
2222 name = project. appName
@@ -39,21 +39,12 @@ dependencies {
3939}
4040
4141repositories {
42- mavenLocal()
4342 jcenter()
4443 maven {
4544 url ' http://repo.enonic.com/public'
4645 }
4746}
4847
49- uploadArchives {
50- repositories {
51- mavenDeployer {
52- repository( url : ' http://repo.enonic.com/artifactory/public' )
53- }
54- }
55- }
56-
5748// Frontend build setup
5849node {
5950 version = ' 5.11.0'
@@ -74,3 +65,33 @@ gulp_build.dependsOn 'npmInstall'
7465// runs "gulp build" as part of your gradle build
7566build. dependsOn gulp_build
7667build. mustRunAfter gulp_build
68+
69+ publishing {
70+ publications {
71+ mavenJava( MavenPublication ) {
72+ from components. java
73+ }
74+ }
75+ }
76+
77+ bintray {
78+ user = bintrayUser
79+ key = bintrayKey
80+ publications = [' mavenJava' ]
81+
82+ pkg {
83+ repo = ' maven'
84+ name = ' payup'
85+ desc = ' A simple e-commerce store for Enonic XP.'
86+ websiteUrl = ' https://github.com/ljl/payup'
87+ issueTrackerUrl = ' https://github.com/ljl/payup/issues'
88+ vcsUrl = ' https://github.com/ljl/payup.git'
89+ licenses = [' Apache-2.0' ]
90+ labels = [' java' , ' enonic' , ' javascript' ]
91+ publicDownloadNumbers = true
92+
93+ version {
94+ vcsTag = " v$project . version "
95+ }
96+ }
97+ }
0 commit comments