Skip to content

Commit 969bd2f

Browse files
author
Damian Staszewski
authored
Merge pull request #51 from stachu540/dev
merge dev
2 parents b50ddf7 + 3bb91a8 commit 969bd2f

File tree

3 files changed

+103
-27
lines changed

3 files changed

+103
-27
lines changed

.circleci/config.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Java Gradle CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-java/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/openjdk:8-jdk
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/postgres:9.4
16+
17+
working_directory: ~/repo
18+
19+
environment:
20+
# Customize the JVM maximum heap limit
21+
JVM_OPTS: -Xmx3200m
22+
TERM: dumb
23+
24+
steps:
25+
- checkout
26+
27+
# Download and cache dependencies
28+
- restore_cache:
29+
keys:
30+
- v1-dependencies-{{ checksum "build.gradle" }}
31+
# fallback to using the latest cache if no exact match is found
32+
- v1-dependencies-
33+
34+
- run: gradle dependencies
35+
36+
- save_cache:
37+
paths:
38+
- ~/.gradle
39+
key: v1-dependencies-{{ checksum "build.gradle" }}
40+
41+
# run tests!
42+
- run: gradle test
43+
deploy:
44+
steps:
45+
- checkout
46+
# Download and cache dependencies
47+
- restore_cache:
48+
keys:
49+
- v1-dependencies-{{ checksum "build.gradle" }}
50+
# fallback to using the latest cache if no exact match is found
51+
- v1-dependencies-
52+
- run: gradle bintrayUpload
53+
54+
workflows:
55+
version: 2
56+
build-deploy:
57+
jobs:
58+
- build
59+
- deploy:
60+
requires:
61+
- build
62+
filters:
63+
branches:
64+
only: master # master branch or the other
65+
tags:
66+
only: /v[0-9]+(\.[0-9]+)*/ # regex tags
67+
68+
69+

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

build.gradle

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ ext {
2525

2626
allprojects {
2727
group = 'com.github.stachu540'
28-
version = '2.1.0'
28+
version = '2.1.1-SNAPSHOT'
29+
description = "Java-Based API Wrapper for Hi-Rez Studios games."
2930

3031
repositories {
3132
jcenter()
@@ -51,7 +52,28 @@ subprojects {
5152
sourceCompatibility = 1.8
5253
targetCompatibility = 1.8
5354

54-
ext.subprojectName = (project.name == "HiRezApi") ? "HiRezApi" : "HiRezApi-${project.name}"
55+
ext {
56+
subprojectName = (project.name == "HiRezApi") ? "HiRezApi" : "HiRezApi-${project.name}"
57+
pomConf = {
58+
licenses {
59+
license {
60+
name "MIT Licence"
61+
url "https://github.com/stachu540/HiRezAPI/blob/master/LICENSE"
62+
distribution "repo"
63+
}
64+
}
65+
developers {
66+
developer {
67+
id "stachu540"
68+
name "Damian Staszewski"
69+
email "damian@stachuofficial.pl"
70+
}
71+
}
72+
scm {
73+
url "https://github.com/stachu540/HiRezAPI.git"
74+
}
75+
}
76+
}
5577

5678
sourceSets {
5779
main {
@@ -93,11 +115,18 @@ subprojects {
93115
publications {
94116
mainProject(MavenPublication) {
95117
from project.components.java
96-
groupId group
118+
groupId project.group
97119
artifactId subprojectName
98-
version version
120+
version project.version
99121
artifact sourcesJar
100122
artifact javadocJar
123+
pom.withXml {
124+
def root = asNode()
125+
root.appendNode("description", project.description)
126+
root.appendNode("name", "HiRezAPI")
127+
root.appendNode('url', 'https://github.com/stachu540/HiRezAPI')
128+
root.children().last() + pomConf
129+
}
101130
}
102131
}
103132
}
@@ -110,7 +139,7 @@ subprojects {
110139
repo = 'Java'
111140
name = 'HiRezAPI'
112141
userOrg = user
113-
desc = 'Java-Based API Wrapper for Hi-Rez Studios games.'
142+
desc = project.description
114143
websiteUrl = 'https://github.com/stachu540/HiRezAPI'
115144
vcsUrl = 'https://github.com/stachu540/HiRezAPI.git'
116145
issueTrackerUrl = 'https://github.com/stachu540/HiRezAPI/issues'

0 commit comments

Comments
 (0)