Skip to content

Commit

Permalink
Set Release Status to RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCoder4eu committed Apr 23, 2017
1 parent d1d6d4f commit ed1bb9a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
Properties props = new Properties()
props.load(new FileInputStream("${projectDir}/build.properties"))
ext.BootsFacesVersion = props['VERSION']
ext.BootsFacesReleaseStatus = props['RELEASE-STATUS'] //SNAPSHOT or RELEASE
ext.BootsFacesReleaseStatus = props['RELEASE-STATUS'] //SNAPSHOT or RCn or betaN or empty for RELEASE
def pomVersion = BootsFacesVersion+'-SNAPSHOT'
if(BootsFacesReleaseStatus==null||BootsFacesReleaseStatus=='') { pomVersion=BootsFacesVersion }
else if(BootsFacesReleaseStatus.startsWith("RC")||BootsFacesReleaseStatus.startsWith("beta")) { pomVersion=BootsFacesVersion+'-'+BootsFacesReleaseStatus }
ext.pomVersion=pomVersion
//Bootstrap
ext.BootstrapVersion = props['bootstrap.version']
//PatternFly
Expand Down Expand Up @@ -89,7 +93,7 @@ showConfig.doFirst {
new File( configClassFile ).write( configClass, 'UTF-8' )

//Patches version in pom file.
def pomVersion = BootsFacesReleaseStatus == 'SNAPSHOT' ? BootsFacesVersion+'-SNAPSHOT' : BootsFacesVersion
//def pomVersion = BootsFacesReleaseStatus == 'SNAPSHOT' ? BootsFacesVersion+'-SNAPSHOT' : BootsFacesVersion
String projectPomText = new File( 'pom.xml' ).getText( 'UTF-8' )
projectPomText=(projectPomText =~ /<version>[^<]+<\/version>/).replaceFirst('<version>'+pomVersion+'</version>')
new File( 'pom.xml' ).write( projectPomText, 'UTF-8' )
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VERSION=1.1.0
# RELEASE-STATUS - SNAPSHOT (default)
# or don't remove the property but just leave it blank for a Final RELEASE :
# RELEASE-STATUS=
RELEASE-STATUS=SNAPSHOT
RELEASE-STATUS=RC1
bootstrap.version=3.3.7

# Set global properties for this build
Expand Down
2 changes: 1 addition & 1 deletion java6/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install {
pom.artifactId = 'bootsfaces'
// shouldn't be needed as this is the default anyway
pom.packaging = 'jar'
pom.version = "$BootsFacesVersion-SNAPSHOT"
pom.version = "$pomVersion"
}
}

Expand Down
2 changes: 1 addition & 1 deletion java7/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install {
pom.artifactId = 'bootsfaces'
// shouldn't be needed as this is the default anyway
pom.packaging = 'jar'
pom.version = "$BootsFacesVersion-SNAPSHOT"
pom.version = "$pomVersion"
}
}

Expand Down
2 changes: 1 addition & 1 deletion java8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install {
pom.artifactId = 'bootsfaces'
// shouldn't be needed as this is the default anyway
pom.packaging = 'jar'
pom.version = "$BootsFacesVersion-SNAPSHOT"
pom.version = "$pomVersion"
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0-RC1</version>
<name>BootsFaces</name>
<description>TheCoder4EU</description>
<url>http://www.bootsfaces.net</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/C.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class C {
* BootsFaces Library Constants
*/
public static final String BSFVERSION="1.1.0";
public static final String BSFRELEASE_STATUS="SNAPSHOT"; //SNAPSHOT or empty String (for a final RELEASE)
public static final String BSFRELEASE_STATUS="RC1"; //SNAPSHOT or empty String (for a final RELEASE)
public static final String BSFCOMPONENT= "net.bootsfaces.component";
public static final String BSFLAYOUT = "net.bootsfaces.layout";
//public static final String BSFRENDER = "net.bootsfaces.render";
Expand Down

0 comments on commit ed1bb9a

Please sign in to comment.