Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial setup based on gradle-plugin-bootstrap
- Loading branch information
Showing
51 changed files
with
2,479 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Thu Jun 21 16:37:18 IST 2018 | ||
gradle.version=4.5.1 |
Binary file not shown.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,151 @@ | ||
// * * * * * * * * * * * * | ||
// Plugins | ||
// * * * * * * * * * * * * | ||
|
||
plugins { | ||
id 'groovy' | ||
id 'java-gradle-plugin' | ||
|
||
// Publishing publicly | ||
id 'com.gradle.plugin-publish' version '0.9.10' | ||
|
||
// Publishing to Artifactory | ||
id 'maven-publish' | ||
} | ||
|
||
// * * * * * * * * * * * * | ||
// Dependencies | ||
// * * * * * * * * * * * * | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
compile gradleApi() | ||
compile group: 'com.squareup.okhttp', name: 'okhttp', version:'2.7.5' | ||
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.7' | ||
testCompile group: 'com.github.tomakehurst', name: 'wiremock', version:'2.14.0' | ||
testCompile gradleTestKit() | ||
testCompile 'junit:junit:4+' | ||
testCompile group: 'io.swagger', name: 'swagger-parser', version:'1.0.34' | ||
|
||
} | ||
|
||
// * * * * * * * * * * * * | ||
// Project configuration | ||
// * * * * * * * * * * * * | ||
|
||
project.description = 'Gradle Plugin for SwaggerHub' | ||
project.group = 'io.github.jsfrench' | ||
project.version = '1.0.0-SNAPSHOT' | ||
|
||
project.ext.name = 'swaggerhub' | ||
project.ext.pluginId = 'com.praqma.demo.DemoPlugin' | ||
project.ext.scm = 'scm:git@github.com:jsfrench/swaggerhub-gradle-plugin.git' | ||
project.ext.url = 'https://github.com/jsfrench/swaggerhub-gradle-plugin' | ||
|
||
// Configuration for: java-gradle-plugin | ||
gradlePlugin { | ||
plugins { | ||
demoPlugin { | ||
id = project.pluginId | ||
implementationClass = 'com.praqma.demo.DemoPlugin' | ||
} | ||
} | ||
} | ||
|
||
// Configuration for: java-gradle-plugin | ||
//gradlePlugin { | ||
// plugins { | ||
// demoPlugin { | ||
// id = project.pluginId | ||
// implementationClass = 'io.github.jsfrench.swaggerhub.SwaggerHubPlugin' | ||
// } | ||
// } | ||
//} | ||
|
||
// * * * * * * * * * * * * | ||
// Publishing | ||
// * * * * * * * * * * * * | ||
|
||
// Consult the accompanied blog post for information on publishing the plugin. | ||
// https://www.praqma.com/stories/gradle-plugin-bootstrap/ | ||
|
||
// Publishing to plugins.gradle.org | ||
// -------------------------------- | ||
|
||
// Configuration for: com.gradle.plugin-publish | ||
pluginBundle { | ||
website = project.url | ||
vcsUrl = project.scm | ||
tags = ['demo', 'example', 'quickstart'] | ||
|
||
plugins { | ||
demoPlugin { | ||
displayName = 'Demo Custom Gradle Plugin ' | ||
description = project.description | ||
id = project.pluginId | ||
} | ||
} | ||
} | ||
|
||
// Publishing to Artifactory | ||
// ------------------------- | ||
|
||
// Configures the publication to push, and the repository to push to | ||
publishing { | ||
publications { | ||
pluginPublication (MavenPublication) { | ||
from components.java | ||
groupId project.group | ||
artifactId project.name | ||
version project.version | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url project.rtfUrl | ||
credentials { | ||
username project.rtfUser | ||
password project.rtfSecret | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
// ##### ORIGINAL ####### | ||
//apply plugin: 'idea' | ||
//apply plugin: 'java' | ||
//apply plugin: 'maven-publish' | ||
//apply plugin: 'io.swagger.swaggerhub.plugin.SwaggerHubPlugin' | ||
// | ||
//group = 'io.github.jsfrench' | ||
//version = '1.0.0-SNAPSHOT' | ||
|
||
//description = """SwaggerHub Gradle Plugin""" | ||
|
||
//sourceCompatibility = 1.8 | ||
//targetCompatibility = 1.8 | ||
//tasks.withType(JavaCompile) { | ||
// options.encoding = 'UTF-8' | ||
//} | ||
// | ||
//configurations.all { | ||
//} | ||
//repositories { | ||
// mavenCentral() | ||
//} | ||
|
||
|
||
|
||
//// https://docs.gradle.org/current/userguide/java_gradle_plugin.html#plugins-tutorials | ||
//gradlePlugin { | ||
// plugins { | ||
// simplePlugin { | ||
// id = 'org.gradle.sample.simple-plugin' | ||
// implementationClass = 'org.gradle.sample.SimplePlugin' | ||
// } | ||
// } | ||
//} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
implementation-class=com.praqma.demo.DemoPlugin |
15 changes: 15 additions & 0 deletions
15
build/publications/demoPluginPluginMarkerMaven/pom-default.xml
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.praqma.demo.DemoPlugin</groupId> | ||
<artifactId>com.praqma.demo.DemoPlugin.gradle.plugin</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<dependencies> | ||
<dependency> | ||
<groupId>io.github.jsfrench</groupId> | ||
<artifactId>demo</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>io.github.jsfrench</groupId> | ||
<artifactId>demo</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.squareup.okhttp</groupId> | ||
<artifactId>okhttp</artifactId> | ||
<version>2.7.5</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.7</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>io.github.jsfrench</groupId> | ||
<artifactId>demo</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.squareup.okhttp</groupId> | ||
<artifactId>okhttp</artifactId> | ||
<version>2.7.5</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.7</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
1 change: 1 addition & 0 deletions
1
build/resources/main/META-INF/gradle-plugins/com.praqma.demo.DemoPlugin.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
implementation-class=com.praqma.demo.DemoPlugin |
1 change: 1 addition & 0 deletions
1
build/resources/main/META-INF/gradle-plugins/io.swagger.swaggerhub.plugin.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
implementation-class=io.github.jsfrench.swaggerhub.SwaggerHubUpload |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Manifest-Version: 1.0 | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Artifactory server and repository | ||
# --------------------------------- | ||
rtfUrl=http\://devops.acmeindustries.com\:8080/artifactory/plugins-release | ||
|
||
# Artifactory credential placeholders | ||
# ----------------------------------- | ||
# Please do not store credentials in the version controlled build.gradle file | ||
# Inject them as environment variables or add them in your user Gradle properties (~/.gradle/gradle.properties) | ||
rtfUser= | ||
rtfSecret= |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Jun 21 16:50:21 IST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip |
Oops, something went wrong.