Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Please follow the steps below in order to make the changes:

### For the sbt plugin

1. Publish the core library locally with `./gradlew publishIvyPublicationToIvyRepository`
1. Publish the core library locally. See the instructions at the bottom of build.gradle discussing the necessary process due to Gradle bug
2. Publish the sbt plugin locally
```shell script
cd plugins/sbt
Expand Down
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ publishing {
}
ivy {
url "${System.properties['user.home']}/.ivy2/local"
// use this layout pattern to work around https://github.com/gradle/gradle/issues/12911
patternLayout {
// Need to publish twice due to a Gradle bug https://github.com/gradle/gradle/issues/12911
// First uncomment the 'layout' line below and comment out the 'artifact' and 'ivy' lines and run `./gradlew publishIvyPublicationToIvyRepository`
// Then restore the code to its original state and run `./gradlew publishIvyPublicationToIvyRepository` again

// layout "ivy"
artifact '[organisation]/[module]/[revision]/[ext]s/[artifact](-[classifier])(.[ext])'
ivy '[organisation]/[module]/[revision]/[artifact]/[artifact](-[classifier])(.[ext])'
}
Expand All @@ -140,4 +144,4 @@ if (project.hasProperty("signing.keyId")) {
signing {
sign publishing.publications.mavenJava
}
}
}
6 changes: 3 additions & 3 deletions plugins/sbt/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ name := "sbt-graphql-java-codegen"
organization := "io.github.kobylynskyi"
description := "Plugin for generating Java code based on GraphQL schema"

version := "1.6.1-SNAPSHOT"

libraryDependencies += "io.github.kobylynskyi" % "graphql-java-codegen" % "1.6.1-SNAPSHOT"
libraryDependencies += "io.github.kobylynskyi" % "graphql-java-codegen" % version.value

enablePlugins(SbtPlugin)
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Expand All @@ -15,3 +13,5 @@ scriptedLaunchOpts := { scriptedLaunchOpts.value ++
scriptedBufferLog := false

licenses := Seq("MIT License" -> url("https://github.com/kobylynskyi/graphql-java-codegen/blob/master/LICENSE.md"))
bintrayOrganization := None
bintrayRepository := "sbt-plugins"
3 changes: 3 additions & 0 deletions plugins/sbt/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")
1 change: 1 addition & 0 deletions plugins/sbt/version.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version in ThisBuild := "1.6.1-SNAPSHOT"