Skip to content

Commit

Permalink
Version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davideas committed Sep 23, 2017
1 parent 4b8f163 commit 32d936c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'eu.davidea:grabver:0.4.1'
classpath 'eu.davidea:grabver:0.5.0'
// or with Gradle Plugins Repository
classpath "gradle.plugin.eu.davidea:grabver:0.4.1"
classpath "gradle.plugin.eu.davidea:grabver:0.5.0"
}
}
```
Expand Down
13 changes: 12 additions & 1 deletion build-test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eu.davidea.grabver'

/*
* INSTRUCTIONS to test new Version:
* - Change versions
* - Use mavenLocal() in repositories
* - Execute:
* gradle install
* - Specify the build file (--build-file):
* gradle -b build-test.gradle
*/
buildscript {
repositories {
jcenter()
mavenLocal()
}
//noinspection GroovyAssignabilityCheck
dependencies {
classpath 'eu.davidea:grabver:0.4.1'
classpath 'eu.davidea:grabver:0.5.0'
}
}

Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile gradleApi()
compile localGroovy()
compile 'nu.studer:java-ordered-properties:1.0.1'

testCompile gradleTestKit()
testCompile group: 'junit', name: 'junit', version: '4.12'
Expand All @@ -38,7 +39,7 @@ ext {

// Library Repository
libraryName = 'GrabVer'
libraryVersion = '0.4.1'
libraryVersion = '0.5.0'
displayName = 'Gradle Automatic Build Versioning Plugin'
libraryDescription = 'An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.'
libraryLabels = ['semver', 'version', 'versioning', 'build-versioning', 'automatic-versioning', 'intellij-idea', 'android-studio', 'auto-reset']
Expand Down
3 changes: 2 additions & 1 deletion module_a/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ apply plugin: 'eu.davidea.grabver'

buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'eu.davidea:grabver:0.4.1'
classpath 'eu.davidea:grabver:0.5.0'
}
}

Expand Down
3 changes: 2 additions & 1 deletion module_b/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ apply plugin: 'eu.davidea.grabver'

buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'eu.davidea:grabver:0.4.1'
classpath 'eu.davidea:grabver:0.5.0'
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/test/groovy/eu/davidea/gradle/GrabVerTest.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.davidea.gradle

import nu.studer.java.util.OrderedProperties
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Before
Expand Down Expand Up @@ -128,7 +129,7 @@ class GrabVerTest {
private static void simulateProperties(int major, int minor, int patch, int build, int code) {
// Load properties file
File versionFile = getFile('version.properties')
Properties versionProps = new Properties()
OrderedProperties versionProps = new OrderedProperties()
FileInputStream fis = new FileInputStream(versionFile)
versionProps.load(fis)
fis.close()
Expand Down

0 comments on commit 32d936c

Please sign in to comment.