Skip to content

Commit 025ba58

Browse files
authored
Merge pull request #1 from srs/master
Added bintray publishing
2 parents 97b5eb2 + 15d8b19 commit 025ba58

File tree

2 files changed

+35
-14
lines changed

2 files changed

+35
-14
lines changed

build.gradle

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11

22
buildscript {
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

1715
apply plugin: 'maven'
16+
apply plugin: 'maven-publish'
1817
apply plugin: 'com.enonic.xp.app'
1918
apply plugin: 'com.moowork.gulp'
19+
apply plugin: 'com.jfrog.bintray'
2020

2121
app {
2222
name = project.appName
@@ -39,21 +39,12 @@ dependencies {
3939
}
4040

4141
repositories {
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
5849
node {
5950
version = '5.11.0'
@@ -74,3 +65,33 @@ gulp_build.dependsOn 'npmInstall'
7465
// runs "gulp build" as part of your gradle build
7566
build.dependsOn gulp_build
7667
build.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+
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#
22
# Project settings
33
#
4-
group = no.iskald.payup
4+
group = no.iskald
55
version = 1.0.0
66
projectName = store
7-
appName = no.iskald.payup.store
7+
appName = no.iskald.payup
88
displayName = PayUp! Store
99
xpVersion = 6.5.3

0 commit comments

Comments
 (0)