diff --git a/Publish.md b/Publish.md new file mode 100644 index 0000000..5e59fcf --- /dev/null +++ b/Publish.md @@ -0,0 +1,9 @@ +# To publish + * 2.10 +``` +./gradlew clean build :gradle-scalastyle-plugin_2.10:bintrayUpload +``` + * 2.11 +``` +./gradlew clean build :gradle-scalastyle-plugin_2.11:bintrayUpload +``` diff --git a/README.md b/README.md index 50e96ee..e003a12 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ maven repo: http://jcenter.bintray.com/ groupId: org.github.ngbinh.scalastyle artifactId: gradle-scalastyle-plugin_2.11 -version: 0.7.2 +version: 0.8.0 ``` Use `artifactId: gradle-scalastyle-plugin_2.10` if you want to use with Scala `2.10` @@ -20,7 +20,7 @@ Use `artifactId: gradle-scalastyle-plugin_2.10` if you want to use with Scala ` Add following dependencies to your buildScript ```groovy - classpath "org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.7.2" + classpath "org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.8.0" ``` Configure the plugin @@ -60,7 +60,7 @@ Other optional properties are } dependencies { - classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.7.2' + classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.8.0' } } @@ -71,3 +71,4 @@ Other optional properties are testSource = "src/test/scala" } ``` + diff --git a/build.gradle b/build.gradle index 9d6ec43..c1e4004 100644 --- a/build.gradle +++ b/build.gradle @@ -126,8 +126,8 @@ subprojects { bintray { - user = project.hasProperty('bintray_user') ? project.bintray_user : 'NotGonnaWork' - key = project.hasProperty('bintray_key') ? project.bintray_key : 'NotGonnaWork' + user = project.hasProperty('bintray_user') ? project.bintray_user : System.getenv('BINTRAY_USER') + key = project.hasProperty('bintray_key') ? project.bintray_key : System.getenv('BINTRAY_API_KEY') publications = ['mavenJava'] pkg { diff --git a/gradle.properties b/gradle.properties index bca581e..020b607 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ projectRepo = 'https://github.com/ngbinh/gradle-scalastyle-plugin' projectGroup = org.github.ngbinh.scalastyle # Change every releases -projectVersion = 0.7.2 +projectVersion = 0.8.0 # switch off build daemon org.gradle.daemon=false