Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit bee3ae8

Browse files
committed
Switch to Gradle.
1 parent 1811cab commit bee3ae8

18 files changed

Lines changed: 551 additions & 407 deletions

.buildscript/deploy_snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
2121
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
2222
else
2323
echo "Deploying snapshot..."
24-
mvn clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -Dmaven.test.skip=true
24+
./gradlew uploadArchives
2525
echo "Snapshot deployed!"
2626
fi

.buildscript/settings.xml

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

.gitignore

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
.classpath
2-
.project
3-
.settings
4-
eclipsebin
5-
6-
bin
7-
gen
8-
build
9-
out
10-
lib
11-
12-
target
13-
pom.xml.*
14-
release.properties
15-
1+
# IntelliJ
162
.idea
173
*.iml
18-
classes
19-
20-
obj
214

5+
# OS X
226
.DS_Store
7+
8+
# Gradle
9+
.gradle
10+
build
11+
local.properties
12+
reports

.travis.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
language: android
2-
3-
android:
4-
components:
5-
- build-tools-20.0.0
6-
- android-16
7-
licenses:
8-
- android-sdk-license-5be876d5
1+
language: java
92

103
jdk:
11-
- oraclejdk7
124
- oraclejdk8
135

146
after_success:
157
- .buildscript/deploy_snapshot.sh
168

179
env:
1810
global:
19-
- secure: "gPnO4rMnW2zFPsx5ROwM1+8+r+fsm2z0n477RMcN+2xWu5QrmfKcdPBj7QFBfWDkwIi/EdASEcID6MzFXPwcU21io18NKt9OMgpuzGyUf2W5oVJN/jYIlC5vPXFeGfsH2Eh3ZMhztSH2ADN9lPAxvThY//FhEMj+MH/z8zVljHA="
20-
- secure: "A4Lps6F7ZcHHQT1zWbdrzp58uho2NcMYsAxB9D/Bbmxwm1uHJ/N8BN2rQilmsu46PzSN9WngKpK04mPn8hTXQPMcnymmM0p4aWQqmwfRDe4QLn1baXkjXUDrdAprRwVEJ2RF2cZXBn64zCtHVRD+TA36FSAx+on/JYDVceKu03Y="
11+
- secure: "ClEdIniNlok5b6YUdD/en7FnsV/X+41NTisd7XWJvzta+Q5llF30VcVobDvMfrlTsqugl3epMSmgOO+8fisw/sV1DCt7J7UHQfVj+ZDPqhWubDFWc6KzvRDp4VOLNE9B/mLOe7bPC/I5NwGAqECsPSu+EV/Zf7ERL+1ewh8kzxY="
12+
- secure: "Q6cjZvLjk77JjYD1F9cGMCWSka2GwlHpefvT8pxG2Se5e4Pr/qyVhS9Z5mIgRqZ16KuweTV/xsixFHrha3gzEAwa1hkOw6kvzR4z9dx0XmpvORuo1h4Ag0LCxAR70ZueGyStqpaXoFmTWB1z0WWwooAd0kgDwMDSOcH60Pv4mew="
2113

2214
branches:
2315
except:
@@ -27,7 +19,3 @@ notifications:
2719
email: false
2820

2921
sudo: false
30-
31-
cache:
32-
directories:
33-
- $HOME/.m2

RELEASING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Releasing
2+
========
3+
4+
1. Change the version in `gradle.properties` to a non-SNAPSHOT verson.
5+
2. Update the `CHANGELOG.md` for the impending release.
6+
3. Update the `README.md` with the new version.
7+
4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
8+
5. `./gradlew clean uploadArchives`.
9+
6. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact.
10+
7. `git tag -a X.Y.X -m "Version X.Y.Z"` (where X.Y.Z is the new version)
11+
8. Update the `gradle.properties` to the next SNAPSHOT version.
12+
9. `git commit -am "Prepare next development version."`
13+
10. `git push && git push --tags`
14+
11. Update the two sample modules to point to the newly released version.
15+
16+
If step 5 or 6 fails, drop the Sonatype repo, fix the problem, commit, and start again at step 5.

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
subprojects { project ->
2+
group = GROUP
3+
version = VERSION_NAME
4+
5+
repositories {
6+
mavenCentral()
7+
}
8+
}

checkstyle.xml

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

gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
GROUP=com.squareup.tape
2+
VERSION_NAME=2.0.0-SNAPSHOT
3+
4+
POM_DESCRIPTION=A lightning fast, transactional, file-based FIFO for Android and Java.
5+
6+
POM_URL=https://github.com/square/tape/
7+
POM_SCM_URL=https://github.com/square/tape/
8+
POM_SCM_CONNECTION=scm:git:git://github.com/square/tape.git
9+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/square/tape.git
10+
11+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
12+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
13+
POM_LICENCE_DIST=repo
14+
15+
POM_DEVELOPER_ID=square
16+
POM_DEVELOPER_NAME=Square, Inc.

0 commit comments

Comments
 (0)