Skip to content

Commit

Permalink
prepare for release v0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yshrsmz committed Aug 25, 2020
1 parent 28d74a9 commit ae8cd30
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Change Log

Badges: `[UPDATED]`, `[FIXED]`, `[ADDED]`, `[DEPRECATED]`, `[REMOVED]`, `[BREAKING]`

Version 0.5.3 *(IN DEVELOPMENT)*
Version 0.5.3 *(2020-08-25)*
---
* `[UPDATED]`: Kotlin 1.4.0
* `[UPDATED]`: Android Gradle Plugin 4.0.1
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kgql
===

[ ![Download](https://api.bintray.com/packages/yshrsmz/kgql/gradle-plugin/images/download.svg) ](https://bintray.com/yshrsmz/kgql/gradle-plugin/_latestVersion)
[![Download](https://api.bintray.com/packages/yshrsmz/kgql/gradle-plugin/images/download.svg)](https://bintray.com/yshrsmz/kgql/gradle-plugin/_latestVersion)

GraphQL Document wrapper generator for Kotlin Multiplatform Project.
Currently available for JVM/Android/iOS
Expand All @@ -18,7 +18,7 @@ kgql Gradle Plugin generates wrapper classes for provided GraphQL document files

### Setup

kgql requires Gradle __5.4.1 or later__
kgql requires Gradle __6.5 or later__

Supported GraphQL file extension: `.gql` or `.graphql`

Expand All @@ -32,9 +32,9 @@ buildscript {
maven { url "https://dl.bintray.com/yshrsmz/kgql" }
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71'
classpath 'org.jetbrains.kotlin:kotlin-serialization:0.22.0'
classpath 'com.codingfeline.kgql:gradle-plugin:0.5.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.0.0-RC'
classpath 'com.codingfeline.kgql:gradle-plugin:0.5.3'
}
}
Expand Down Expand Up @@ -67,9 +67,9 @@ buildscript {
maven { url "https://dl.bintray.com/yshrsmz/kgql" }
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71'
classpath 'org.jetbrains.kotlin:kotlin-serialization:0.22.0'
classpath 'com.codingfeline.kgql:gradle-plugin:0.5.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.0.0-RC'
classpath 'com.codingfeline.kgql:gradle-plugin:0.5.3'
}
}
Expand Down Expand Up @@ -237,7 +237,7 @@ $ ./gradlew -p sample generateKgqlInterface
```
# Try out the samples.
# BuildKonfig will be generated in ./sample/build/kgql
$ ./gradlew clean publishAllPublicationsToTestRepository
$ ./gradlew clean build installArchives
$ ./gradlew -p sample generateKgqlInterface
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
kotlin.js.compiler=both
#
GROUP=com.codingfeline.kgql
VERSION_NAME=0.5.3-SNAPSHOT
VERSION_NAME=0.5.3
#
POM_URL=https://github.com/yshrsmz/kgql/
POM_SCM_URL=https://github.com/yshrsmz/kgql/
Expand Down
16 changes: 8 additions & 8 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,30 @@ def findProperty(String key) {
[project.properties[key], System.getenv(key)].find { it != null }
}

def getReleaseRepositoryUrl() {
def getReleaseRepositoryUrlFromProperty() {
return findProperty("RELEASE_REPOSITORY_URL") ?: "https://api.bintray.com/maven/$BINTRAY_ORG/$BINTRAY_REPOSITORY/$POM_ARTIFACT_ID"
}

def getSnapshotRepositoryUrl() {
def getSnapshotRepositoryUrlFromProperty() {
return findProperty("SNAPSHOT_REPOSITORY_URL") ?: "https://oss.jfrog.org/artifactory/oss-snapshot-local"
}

def getRepositoryUsername() {
def getRepositoryUsernameFromProperty() {
return findProperty("BINTRAY_USER") ?: "no.bintray.user"
}

def getRepositoryPassword() {
def getRepositoryPasswordFromProperty() {
return findProperty("BINTRAY_API_KEY") ?: "no.bintray.api.key"
}

mavenPublish {
releaseSigningEnabled = false
targets {
uploadArchives {
releaseRepositoryUrl = getReleaseRepositoryUrl()
snapshotRepositoryUrl = getSnapshotRepositoryUrl()
repositoryUsername = getRepositoryUsername()
repositoryPassword = getRepositoryPassword()
releaseRepositoryUrl = getReleaseRepositoryUrlFromProperty()
snapshotRepositoryUrl = null
repositoryUsername = getRepositoryUsernameFromProperty()
repositoryPassword = getRepositoryPasswordFromProperty()
}
installArchives {
releaseRepositoryUrl = file("${rootProject.buildDir}/localMaven").toURI().toString()
Expand Down
1 change: 0 additions & 1 deletion kgql-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'maven-publish'

sourceSets {
main.java.srcDir "gen"
Expand Down
1 change: 0 additions & 1 deletion kgql-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'kotlin-multiplatform'
apply plugin: 'kotlinx-serialization'
apply plugin: 'maven-publish'

archivesBaseName = 'kgql-core'

Expand Down
1 change: 0 additions & 1 deletion kgql-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'java-gradle-plugin'
apply plugin: "com.gradle.plugin-publish"
apply plugin: "maven-publish"

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
6 changes: 1 addition & 5 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/usr/bin/env sh

./gradlew clean
./gradlew build
./gradlew :kgql-core:publishAllPublicationsToMavenRepository
./gradlew :kgql-compiler:publishAllPublicationsToMavenRepository
./gradlew :kgql-gradle-plugin:publishAllPublicationsToMavenRepository :kgql-gradle-plugin:publishPlugins
./gradlew clean build uploadArchives :kgql-gradle-plugin:publishPlugins --no-daemon --no-parallel

0 comments on commit ae8cd30

Please sign in to comment.