This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from heroku/malax/2.0
2.0
- Loading branch information
Showing
17 changed files
with
339 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,52 @@ | ||
plugins { | ||
id 'com.gradle.plugin-publish' version '0.10.0' | ||
id 'com.jfrog.bintray' version '1.8.4' | ||
|
||
id 'eclipse' | ||
id 'groovy' | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'groovy' | ||
id 'java-gradle-plugin' | ||
id "com.gradle.plugin-publish" version "0.12.0" | ||
} | ||
|
||
task createClasspathManifest { | ||
def outputDir = file("$buildDir/$name") | ||
|
||
inputs.files sourceSets.main.runtimeClasspath | ||
outputs.dir outputDir | ||
version '2.0.0-SNAPSHOT' | ||
|
||
doLast { | ||
outputDir.mkdirs() | ||
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n") | ||
} | ||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile 'com.heroku.sdk:heroku-deploy:2.0.6' | ||
compile 'com.google.guava:guava:18.0' | ||
compile gradleApi() | ||
|
||
testCompile gradleTestKit() | ||
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') { | ||
exclude module: 'groovy-all' | ||
} | ||
testCompile files(createClasspathManifest) | ||
implementation 'com.heroku.sdk:heroku-deploy:3.0.3' | ||
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5' | ||
} | ||
|
||
group = 'com.heroku.sdk' | ||
version = "1.0.5-SNAPSHOT" | ||
|
||
task sourceJar(type: Jar) { | ||
from sourceSets.main.allSource | ||
classifier 'sources' | ||
} | ||
|
||
publishing { | ||
publications { | ||
bintray(MavenPublication) { | ||
from components.java | ||
artifact(sourceJar) | ||
artifact(publishPluginJavaDocsJar) | ||
gradlePlugin { | ||
plugins { | ||
herokuGradle { | ||
id = 'com.heroku.sdk.heroku-gradle' | ||
implementationClass = 'com.heroku.sdk.HerokuGradlePlugin' | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = System.env.BINTRAY_USER | ||
key = System.env.BINTRAY_KEY | ||
publish = true | ||
pkg { | ||
repo = 'maven' | ||
name = 'gradle' | ||
userOrg = 'heroku' | ||
licenses = ['MIT'] | ||
publications = ['bintray'] | ||
} | ||
} | ||
|
||
bintrayUpload.dependsOn 'generatePomFileForBintrayPublication', 'sourceJar', 'build' | ||
|
||
bintrayUpload.onlyIf { | ||
System.env.BINTRAY_USER && System.env.BINTRAY_KEY && project.version ==~ /\d+\.\d+\.\d+/ | ||
} | ||
|
||
pluginBundle { | ||
website = 'https://github.com/heroku/heroku-gradle' | ||
vcsUrl = 'https://github.com/heroku/heroku-gradle' | ||
description = 'A Gradle plugin for deploying to Heroku.' | ||
tags = ['heroku', 'deployment'] | ||
|
||
plugins { | ||
herokuPlugin { | ||
id = 'com.heroku.sdk.heroku-gradle' | ||
displayName = 'Heroku Gradle' | ||
website = 'https://github.com/heroku/heroku-gradle' | ||
vcsUrl = 'https://github.com/heroku/heroku-gradle.git' | ||
description = 'A Gradle plugin for deploying to Heroku.' | ||
tags = ['heroku', 'deployment'] | ||
|
||
plugins { | ||
herokuGradle { | ||
displayName = 'Heroku Gradle' | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishPlugins.onlyIf { | ||
project.version ==~ /\d+\.\d+\.\d+/ | ||
// To determine the plugin version at runtime, we package a properties file with the current version string: | ||
task writeVersionPropertiesFile(type: WriteProperties) { | ||
outputFile = file('src/main/resources/heroku-gradle.properties') | ||
property 'version', project.version | ||
} | ||
|
||
assemble.dependsOn writeVersionPropertiesFile |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Mon Jul 20 17:02:45 CEST 2020 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
src/main/groovy/com/heroku/sdk/gradle/DeployHerokuTask.groovy
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.