-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gradle build. Add publishing command to S3
- Loading branch information
Yehor Kovalchuk
committed
Mar 21, 2023
1 parent
45e3f97
commit 9346285
Showing
1,980 changed files
with
166,790 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::499333472133:role/GitHub-Publish-Maven-Artifacts | ||
aws-region: eu-east-1 | ||
|
||
- name: Publish to Lidalia Repo | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: publishAllPublicationsToWiremock-cloud-publicRepository |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
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 @@ | ||
#Mon Mar 20 14:28:39 TRT 2023 | ||
gradle.version=8.0.2 |
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17 Bytes
buildSrc/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
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 @@ | ||
#Mon Mar 20 14:28:27 TRT 2023 | ||
gradle.version=8.0.2 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
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 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This project uses @Incubating APIs which are subject to change. | ||
*/ | ||
|
||
plugins { | ||
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. | ||
id 'groovy-gradle-plugin' | ||
} | ||
|
||
repositories { | ||
// Use the plugin portal to apply community plugins in convention plugins. | ||
gradlePluginPortal() | ||
} |
Binary file added
BIN
+3.52 KB
buildSrc/build/classes/java/main/IoSwaggerParserV3JavaConventionsPlugin.class
Binary file not shown.
42 changes: 42 additions & 0 deletions
42
...c/build/groovy-dsl-plugins/output/adapter-src/IoSwaggerParserV3JavaConventionsPlugin.java
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,42 @@ | ||
//CHECKSTYLE:OFF | ||
import org.gradle.util.GradleVersion; | ||
import org.gradle.groovy.scripts.BasicScript; | ||
import org.gradle.groovy.scripts.ScriptSource; | ||
import org.gradle.groovy.scripts.TextResourceScriptSource; | ||
import org.gradle.internal.resource.StringTextResource; | ||
/** | ||
* Precompiled io.swagger.parser.v3.java-conventions script plugin. | ||
**/ | ||
public class IoSwaggerParserV3JavaConventionsPlugin implements org.gradle.api.Plugin<org.gradle.api.internal.project.ProjectInternal> { | ||
private static final String MIN_SUPPORTED_GRADLE_VERSION = "5.0"; | ||
public void apply(org.gradle.api.internal.project.ProjectInternal target) { | ||
assertSupportedByCurrentGradleVersion(); | ||
try { | ||
Class<? extends BasicScript> pluginsBlockClass = Class.forName("cp_precompiled_IoSwaggerParserV3JavaConventions").asSubclass(BasicScript.class); | ||
BasicScript pluginsBlockScript = pluginsBlockClass.getDeclaredConstructor().newInstance(); | ||
pluginsBlockScript.setScriptSource(scriptSource(pluginsBlockClass)); | ||
pluginsBlockScript.init(target, target.getServices()); | ||
pluginsBlockScript.run(); | ||
target.getPluginManager().apply("java-library"); | ||
target.getPluginManager().apply("maven-publish"); | ||
|
||
|
||
Class<? extends BasicScript> precompiledScriptClass = Class.forName("precompiled_IoSwaggerParserV3JavaConventions").asSubclass(BasicScript.class); | ||
BasicScript script = precompiledScriptClass.getDeclaredConstructor().newInstance(); | ||
script.setScriptSource(scriptSource(precompiledScriptClass)); | ||
script.init(target, target.getServices()); | ||
script.run(); | ||
} catch (Exception e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
private static ScriptSource scriptSource(Class<?> scriptClass) { | ||
return new TextResourceScriptSource(new StringTextResource(scriptClass.getSimpleName(), "")); | ||
} | ||
private static void assertSupportedByCurrentGradleVersion() { | ||
if (GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version(MIN_SUPPORTED_GRADLE_VERSION)) < 0) { | ||
throw new RuntimeException("Precompiled Groovy script plugins require Gradle "+MIN_SUPPORTED_GRADLE_VERSION+" or higher"); | ||
} | ||
} | ||
} | ||
//CHECKSTYLE:ON |
Binary file added
BIN
+2.65 KB
...lugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure10.class
Binary file not shown.
Binary file added
BIN
+2.66 KB
...plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure7.class
Binary file not shown.
Binary file added
BIN
+2.66 KB
...plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure8.class
Binary file not shown.
Binary file added
BIN
+2.64 KB
...plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure9.class
Binary file not shown.
Binary file added
BIN
+3.01 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1.class
Binary file not shown.
Binary file added
BIN
+2.79 KB
...led_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11$_closure12$_closure13.class
Binary file not shown.
Binary file added
BIN
+2.98 KB
...es/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11$_closure12.class
Binary file not shown.
Binary file added
BIN
+2.61 KB
...lugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11.class
Binary file not shown.
Binary file added
BIN
+2.52 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2.class
Binary file not shown.
Binary file added
BIN
+2.37 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure3.class
Binary file not shown.
Binary file added
BIN
+2.46 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure4.class
Binary file not shown.
Binary file added
BIN
+2.46 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure5.class
Binary file not shown.
Binary file added
BIN
+2.42 KB
...ns/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions$_run_closure6.class
Binary file not shown.
Binary file added
BIN
+3.53 KB
...oovy-dsl-plugins/output/plugin-classes/precompiled_IoSwaggerParserV3JavaConventions.class
Binary file not shown.
Binary file added
BIN
+2.54 KB
...ugin-requests-staging/cp_precompiled_IoSwaggerParserV3JavaConventions$_run_closure1.class
Binary file not shown.
Binary file added
BIN
+2.18 KB
...gins/output/plugin-requests-staging/cp_precompiled_IoSwaggerParserV3JavaConventions.class
Binary file not shown.
Binary file added
BIN
+2.54 KB
...r.v3.java-conventions/cp_precompiled_IoSwaggerParserV3JavaConventions$_run_closure1.class
Binary file not shown.
Binary file added
BIN
+2.18 KB
....swagger.parser.v3.java-conventions/cp_precompiled_IoSwaggerParserV3JavaConventions.class
Binary file not shown.
Binary file added
BIN
+1 Byte
...ovy-dsl-plugins/output/plugin-requests/io.swagger.parser.v3.java-conventions/metadata.bin
Binary file not shown.
Binary file added
BIN
+2.65 KB
...a-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure10.class
Binary file not shown.
Binary file added
BIN
+2.66 KB
...va-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure7.class
Binary file not shown.
Binary file added
BIN
+2.66 KB
...va-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure8.class
Binary file not shown.
Binary file added
BIN
+2.64 KB
...va-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1$_closure9.class
Binary file not shown.
Binary file added
BIN
+3.01 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure1.class
Binary file not shown.
Binary file added
BIN
+2.79 KB
...led_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11$_closure12$_closure13.class
Binary file not shown.
Binary file added
BIN
+2.98 KB
...ns/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11$_closure12.class
Binary file not shown.
Binary file added
BIN
+2.61 KB
...a-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2$_closure11.class
Binary file not shown.
Binary file added
BIN
+2.52 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure2.class
Binary file not shown.
Binary file added
BIN
+2.37 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure3.class
Binary file not shown.
Binary file added
BIN
+2.46 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure4.class
Binary file not shown.
Binary file added
BIN
+2.46 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure5.class
Binary file not shown.
Binary file added
BIN
+2.42 KB
...rser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions$_run_closure6.class
Binary file not shown.
Binary file added
BIN
+3.53 KB
.../io.swagger.parser.v3.java-conventions/precompiled_IoSwaggerParserV3JavaConventions.class
Binary file not shown.
Binary file added
BIN
+2 Bytes
...build/groovy-dsl-plugins/work/metadata/io.swagger.parser.v3.java-conventions/metadata.bin
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
buildSrc/build/pluginDescriptors/io.swagger.parser.v3.java-conventions.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=IoSwaggerParserV3JavaConventionsPlugin |
1 change: 1 addition & 0 deletions
1
...d/resources/main/META-INF/gradle-plugins/io.swagger.parser.v3.java-conventions.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=IoSwaggerParserV3JavaConventionsPlugin |
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 @@ | ||
Manifest-Version: 1.0 | ||
|
62 changes: 62 additions & 0 deletions
62
buildSrc/src/main/groovy/io.swagger.parser.v3.java-conventions.gradle
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,62 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This project uses @Incubating APIs which are subject to change. | ||
*/ | ||
|
||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri('https://oss.sonatype.org/content/repositories/snapshots') | ||
} | ||
|
||
maven { | ||
url = uri('https://oss.sonatype.org/content/repositories/releases') | ||
} | ||
|
||
maven { | ||
url = uri('https://maven-public.wiremock.io') | ||
} | ||
|
||
maven { | ||
url = uri('https://repo.maven.apache.org/maven2/') | ||
} | ||
} | ||
|
||
group = 'io.swagger.parser.v3' | ||
version = '2.1.13.1-SNAPSHOT' | ||
java.sourceCompatibility = JavaVersion.VERSION_1_8 | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "wiremock-cloud-public" | ||
url = "s3://wiremock-cloud-maven-public-repo/releases/" | ||
credentials(AwsCredentials) { | ||
accessKey = System.getenv("AWS_ACCESS_KEY_ID") | ||
secretKey = System.getenv("AWS_SECRET_ACCESS_KEY") | ||
} | ||
} | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
tasks.withType(JavaCompile) { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
tasks.withType(Javadoc) { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
test { | ||
jvmArgs '-Djdk.attach.allowAttachSelf=true' | ||
} |
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,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.