Skip to content

Commit

Permalink
AVRO-3732: [gradle-plugin] import gradle plugin from gradle-avro-plug…
Browse files Browse the repository at this point in the history
…in (#2310)

AVRO-3732: 

* Try again to avoid gradle welcome banner in CI

* ci: try turning on github actions compatibility tests

* fix ci syntax

* ci: fix yaml indentation

* ci: comment out fail fast

* ci: fix matrix structure

* CI: try matrix with allowed failures

* CI: give up on conditional failures allowed for now; exclude java 13

* CI: info output for builds

* Try to resolve the test failures on windows regarding default encoding handling

* Fix encoding support on windows, for real this time

* CI: add unsupported-java-versions job

* CI: run the unsupported java versions job on all the OS versions

After all, they'll all fail almost immediately anyway

* README: Update badge to use github actions rather than travis

* add support for generating optional getters

* README: fix CI badge syntax

* README: fix CI badge image

* add doc for optional getter field generation

* Update changelog to note the recent merged pull request

* CI: disable the gradle daemon to try to eliminate the sporadic clean failure on windows

* Remove security policy; not a CommerceHub OSS project any more

* Update various files for commercehub-oss -> davidmc24 github move

* Working version of custom conversions against modern gradle; still need to adjust for earlier versions

* Don't use MapProperty yet; it wasn't introduced until Gradle 5.1

* Don't use ListProperty

It changed incompatibly between Gradle 4.4 and Gralde 4.5

* Don't use Class.newInstance(), as it was deprecated in Java 11

* Update issue templates

* Update bug_report.md to add a checklist

* Update feature_request.md to include a checklist

* CI: don't bother doing maintenance builds on old OS versions; only use latest

* CI: update another place with os versions that I missed

* version: 0.18.0

* version: 0.18.1-SNAPSHOT

* update to Avro 1.9.2 since https://issues.apache.org/jira/browse/AVRO-2548 has been fixed there

* Add support for Gradle 6.0-6.2, drop support for gradle <5.1 (#101)

* Update changelog for #104

* Add support for Java 13

* Add support for testing multiple kotlin versions

* Update plugin's own build to address some deprecation warnings of APIs being removed in Gradle 7

* BuildCacheSupportFunctionalSpec no longer needs an @IgnoreIf, as we only support versions where the Build Cache is supported.

* Remove license plugin

It was resulting in deprecation warnings about Gradle 7, a new version wasn't available, and I don't think it was providing real value.

* Lots of test updates

* Remove taskInfoAbsent, as it isn't needed any more with the versions of Gradle we support
* Remove isMultipleClassDirectoriesUsed, as all versions of Gradle we support now use it
* Leverage GradleRunner's withPluginClasspath feature when able to use plugin DSL to apply the test plugin
* Add addDefaultRepository utility method
* Add applyPlugin override that takes a version
* Rename addDependency to addImplementationDependency; add addRuntimeDependency and addDependency that takes a configuration argument
* Use stripMargin more consistently

* Add tests for Kotlin DSL usage (#61)

* Handle a test that appears to fail on Windows due to weird file locking behaviors

* Update to note a Kotlin-Java version incompatibility

* Update to gradle 6.2.2

* Official Gradle Wrapper Validation Action

See: https://github.com/gradle/wrapper-validation-action
Added as a dedicated Workflow

* Support Task Configuration Avoidance (#97)

https://docs.gradle.org/current/userguide/task_configuration_avoidance.html

Thanks to [dcabasson](https://github.com/dcabasson) for the collaboration

* Update test result directory names

* Work around a bug showing in Gradle 5.1

It appears that in Gradle 5.1, TaskContainer's `withType` overwrites the results of `matching`, causing java compilation tasks to be returned.
This results in a circular task dependency.
Changing the order to filter by type first fixes it.

* See if we can get Java 14 support working with a Gradle 6.3 nightly build

* Update codenarc support so it works in Java 14+; update compatibility notes

* version: 0.19.0

* version: 0.19.1-SNAPSHOT

* Create FUNDING.yml

* Update bug_report.md

* Fix schema dependency resolution when types are referenced with a `{ "type": NAME }` block rather than just `NAME` (#107)

* Eliminate `NullPointerException` handling in schema dependency resolution, as it no longer appears to be needed.

* version: 0.19.1

* version: 0.19.2-SNAPSHOT

* Add  (#115)

* Update version compatibility support

* Built using Gradle 6.5
* Updated compatibility testing to include Java 14
* Updated compatibility testing through Gradle 6.5

* version: 0.20.0

* version: 0.20.1-SNAPSHOT

* ci: Tweak how the jobs are run to reduce execution time and unreliability

Mac OS X jobs have been failing with messages that they were cancelled.

My theory is that either Mac OS X jobs are flakey right now, or I'm hitting an execution timeout of some kind.

Either way, this reduces how long jobs run for and how many are run on Mac OS X.
Hopefully it will complete faster (providing faster feedback) and be more reliable.

* CI: try using eskatos/gradle-command-action to improve build speed

This enables use of the daemon and easy caching of wrapper
Might enable depenendcy caching latter (isn't on by default yet)

* CI: try turning on build scans

* CI: fix the build

It looks like there may be an incompatibility between gradle-entrprise and gradle-github-actions; try just gradle-enterprise for now.
Also, gralde-enterprise needs to be applied in the settings file with the latest version.

* CI: some build tweaks for performance

Enable github actions plugin to capture metadata in build scans
Enable parallel builds
Enable dependency caching

* Correcting cache annotation for classpath

* Correcting cache annotation for classpath - add items to unreleased changelog

* Update to Avro 1.10.0

* Add a test project to aid in reproducing problems

* Test cleanup and CHANGES.md additions for Avro 1.10.0 support

* Fix test name for optionalGettersForNullableFieldsOnly

* Confirm that the nullable getter is still generated when createOptionalGetters is enabled

* Formatting fixes and test simplification

* Fix optionalGettersForNullableFieldsOnly test naming and CHANGES formatting

* Ensure option conditions are checked against relevant file portions

* Remove apache staging dependency and pull release from JCenter

* Ensure createOptionalGetters test checks correct mainClassContent

* Remove extraneous newline from test repository definition

* version: 0.21.0

* version: 0.21.1-SNAPSHOT

* build: add coverage reporting using JaCoCo and Codecov

* CI: flag codecov report by OS

* Add support for multiple IDL files with the same name in different directories (#123)

* Update AvroUtils and Strings, with unit test coverage

* Fix codenarc failures

* Fix a test typo (Fixes #125)

* Update test-project to remove references to dataTimeLogicalType

* Plugin DSL is no longer incubating, and is now recommended.

* Upgrade to Avro 0.10.1 because of https://issues.apache.org/jira/browse/AVRO-2924

* Added compatibility testing against 1.10.0 and 1.10.1

* More spock assert about generated Java Code was added. Type uuid is not compilable with Avro 1.10.1

* Avro 1.10.1 was set also in test-project/build.gradle

* Minor post pull-request-merge tweaks

* Update compatibility with Java/Gradle, tweak build spead

* Improve Java version support

Use a Java 15-compatible version of Jacoco (currently requires a snapshot build)
Use a new Java 9+ option in Gradle 6.6 that use cross-compilation to ensure that APIs not available in previous versions aren't used improperly

* Correct Java 15 Gradle version compatibility

* Add support for configuration cache and update kotlin testing

Closes #129

* Make codenarc happy

Fix ClosureStatementOnOpeningLineOfMultipleLineClosure violation

* Address not all versions of kotlin plugin supporting config cache

* version: 0.22.0

* version: 0.23.0-SNAPSHOT

* Add link to discussions for Q&A

* Revert "Add link to discussions for Q&A"

This reverts commit 946cf47.

* Add link to discussions for Q&A

* Add feature requests to template chooser

* Try moving feature requests to discussions

* Update README to reflect changes in historical version handling

* Update notes about pre-1.0 versions

* Work towards a 1.0 release

* Fix up POMs, add signing; to satisfy Maven Central requirements

* version: 1.0.0

* version: 1.0.1-SNAPSHOT

* version: 1.0.0 (take 2)

* version: 1.0.0 (take 3)

* version: 1.0.1-SNAPSHOT

* Remove remaining references to jcenter

* Build using Avro 1.10.2

* Build using Gradle 6.8.3

* Try running compatibility tests from github actions rather than gradle

* Try extracting kotlin plugin compatibility testing to its own workflow

* Try to fix CI job

* Try to fix CI job

* Fix testKotlinPluginCompatibility

* Next try at kotlin compatibility

* More matrix stuff

* More matrix compatibility tweaks

* More matrix compatibility tweaks

* More matrix compatibility tweaks

* More matrix compatibility tweaks

* Upgrade gradle used to build the project to 7.0-rc-1 in order to support the build running on Java 16

* More changes for Gradle 7 compatibility

* Add gradle compatibility tests

* More spock 2.0 and Gradle 7 compatibility changes

* Fix checkstyle violation

* Tweak CI targets

* Adjust compatibility notes/testing for java 16/17

* Use nexus publish plugin to automate management of OSSRH interactions

* Adjust test report directories

* Fix os compatibility tests

* Update changelog

* version: 1.1.0

* version: 1.1.1-SNAPSHOT

* Try to fix publishing

* Temporary change to test the CI publishing fix

* Revert "Temporary change to test the CI publishing fix"

This reverts commit 4fb85a4.

* Re-add support for Avro 1.9.x

* Update release notes

* Throw error if avdl will be overwritten

* Add to changelog

* Minor touchups on avpr conflict detection

* Add support for better coverage reporting... and disable it because it conflicts with configuration caching in Gradle 7.0

* version: 1.2.0

* version: 1.2.1-SNAPSHOT

* Add examples/default-custom-types

* Update for Gradle 7.1

* CI: update to setup-java v2

* Update comment on code coverage support

* Update build/test to Gradle 7.1.1

* Update test-project to reproduce #167

* Explicitly declare dependencies between sources jar tasks and GenerateAvroJavaTasks (#167)

* Satisfy checkstyle

* Simplify sources jar handling and fix configuration avoidance

* Fix compatibility with Gradle before 6.0

* version: 1.2.1

* version: 1.2.2-SNAPSHOT

* Upgrade to Gradle 7.2

* Update CI to indicate that Java 17 has been released, even though it's not supported yet.

* Upgrade CodeNarc to build cleanly on Java 17

* Add some scripts to aid troubleshooting

* Update readme to use implementation rather than compile configuration

* Add avsc-from-external-jar and avsc-from-subproject examples

* Make some minor adjustments to GradleAvroProtocolTask due to investigation of #174

* Add design for potential "additional schema" configurations feature

* Add block to example to show custom resource dir usage

* Update avsc-from-subproject example to compile schema for schema project, exclude generated classes from cat jar

* Fix cachability for cat jar in example

* GenerateAvroProtocolTask: don't delegate to the system classloader, even implicitly

* Add an example that generated a UUID field

* Add test project for kotlin

* Update for avro 1.11.0

* Drop support for Avro 1.9.0-1.10.2

Due to an incompatibility introduced in Avro 1.11.0

error: no suitable constructor found for SpecificRecordBuilderBase(Schema,SpecificData)

* Update kotlin compatibility testing

* Update Java compatibility testing

* Update to build with Gradle 7.3; add Java 17 compatibility

* CI: Attempt to fix kotlin compatibility testing

* More kotlin compatibility testing fixes

* CI: update to gradle-build-action v2

* version: 1.3.0

* version: 1.3.1-SNAPSHOT

* CI: enable automatic staging repository releasing

* Drop kotlin plugin integration

* Add note about seeking new maintainer to readme

* version: 1.4.0

* version: 1.4.1-SNAPSHOT

* Add 'additionalVelocityTool' capability. Allows user to provide tools that will be available in Velocity templates at generation time.

* Update changelog

* Update versions of Gradle/Avro/Java

* version: 1.5.0

* version: 1.5.1-SNAPSHOT

* Support specifying classpath for additional velocity tool classes

* Add test for classpath property in GenerateAvroJavaTask

* Minor cleanup

* Fix test: escape backslashes in a Windows path

* Drop Java compatibility testing for outdated versions

* Update for Gradle 7.6 and Java 19

* Fix up cross-version compatibility for the Gradle 7.6 adjustments

* Update changelog

* version: 1.6.0

* version: 1.6.1-SNAPSHOT

* Update changelog

* Add ability to use conversions and type factories residing outside of build classpath

* Fix compatibility with Gradle < 7.1

* Add documentation for using conversions and type factories located outside of build classpath

* Add deprecations for methods used to configure conversions and type factories with classes

* Prep for 1.7.0 release

* version: 1.7.1-SNAPSHOT

* Fix vulnerabilities in transitive dependencies

* version: 1.7.1

* version: 1.7.2-SNAPSHOT

* Update github actions that ran in node 12

* Fix Kotlin DSL setup snippet

* move everything to lang/java/gradle-plugin

---------

Co-authored-by: David M. Carr <david@carrclan.us>
Co-authored-by: David M. Carr <dcarr@commercehub.com>
Co-authored-by: Ben Speakmon <benjamin.speakmon@nordstrom.com>
Co-authored-by: Markus Helbig <mhelbig81@googlemail.com>
Co-authored-by: Denis Cabasson <denis_c@apple.com>
Co-authored-by: mcwhitak <mcwhitaker@fastmail.com>
Co-authored-by: Michael Whitaker <michael.whitaker@nordstrom.com>
Co-authored-by: Vladimir Kralik <vkralik@gmail.com>
Co-authored-by: Ola Hungerford <Ola.Hungerford@nordstrom.com>
Co-authored-by: David M. Carr <dcarr@gradle.com>
Co-authored-by: Dave Cracauer <david.cracauer@bestbuy.com>
Co-authored-by: Paul Kofmann <crtlib@gmail.com>
Co-authored-by: Marcin Erdmann <erdi84@gmail.com>
Co-authored-by: Marcel Henrich <marcel.henrich-extern@deutschebahn.com>
Co-authored-by: Antonio Martinović <antonio.martinovic@pm.me>
  • Loading branch information
16 people authored May 20, 2024
1 parent 09910f3 commit cd9a7a0
Show file tree
Hide file tree
Showing 193 changed files with 12,802 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: davidmc24
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Prerequisites**

* [ ] Are you running the latest version of the plugin? (Check [releases](https://github.com/davidmc24/gradle-avro-plugin/releases))
* [ ] Are you running a supported version of Gradle? (Check the [README](https://github.com/davidmc24/gradle-avro-plugin/blob/master/README.md))
* [ ] Are you running a supported version of Apache Avro? (Check the [README](https://github.com/davidmc24/gradle-avro-plugin/blob/master/README.md))
* [ ] Are you running a supported version of Java? (Check the [README](https://github.com/davidmc24/gradle-avro-plugin/blob/master/README.md))
* [ ] Did you check to see if an [issue](https://github.com/davidmc24/gradle-avro-plugin/issues) has already been submitted?
* [ ] Are you reporting to the correct repository? If your schema doesn't work with the Apache Avro CLI tool either, it's not a problem with this plugin. Running your file through the `CLIComparisonTest` in the sample project under the `test-project` directory can help diagnose this.
* [ ] Did you perform a cursory search?

For more information, see the [CONTRIBUTING](https://github.com/davidmc24/gradle-avro-plugin/blob/master/CONTRIBUTING.md) guide.

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:

1. Project set up like this...
2. Source files like this...
3. Ran this task...
4. See error

Please provide complete input files that reproduce the problem, not fragments.
When possible, please express this using `test-project`.

**Expected behavior**

A clear and concise description of what you expected to happen.

**Environment (please complete the following information):**
- Gradle Version [e.g. 5.6.1]
- Apache Avro Version [e.g. 1.8.2]
- Gradle-Avro Plugin Version [e.g. 0.17.0]
- Java Version [e.g. 13.0.2]
- OS: [e.g. Mac OS X Mojave, Windows 10, Ubuntu 16.04]

**Additional context**

Add any other context about the problem here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Feature requests and ideas
url: https://github.com/davidmc24/gradle-avro-plugin/discussions/categories/ideas
about: Suggest an idea for this project
- name: Questions
url: https://github.com/davidmc24/gradle-avro-plugin/discussions/categories/q-a
about: Please ask and answer questions here
20 changes: 20 additions & 0 deletions .github/workflows/avro-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Avro Compatibility Tests
on: [push, pull_request]
jobs:
test:
name: "Compatibility: avro ${{ matrix.avro }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0", "1.11.1"]
gradle: ["5.1", "7.6"]
java: ["8"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI Build
on: [push, pull_request]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 8
- uses: gradle/gradle-build-action@v2
with:
arguments: build
# - uses: codecov/codecov-action@v1
# with:
# file: ./build/reports/jacoco/test/jacocoTestReport.xml
# fail_ci_if_error: true
26 changes: 26 additions & 0 deletions .github/workflows/gradle-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Gradle Compatibility Tests
on: [push, pull_request]
jobs:
test:
name: "Compatibility: gradle ${{ matrix.gradle }}/java ${{ matrix.java }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: [
"5.1", "5.1.1", "5.2", "5.2.1", "5.3", "5.3.1", "5.4", "5.4.1", "5.5", "5.5.1", "5.6", "5.6.1", "5.6.2", "5.6.3", "5.6.4",
"6.0", "6.0.1", "6.1", "6.1.1", "6.2", "6.2.1", "6.2.2", "6.3", "6.4", "6.4.1", "6.5", "6.5.1", "6.6", "6.6.1", "6.7", "6.7.1",
"6.8", "6.8.1", "6.8.2", "6.8.3", "6.9", "6.9.1", "6.9.2", "6.9.3",
"7.0", "7.0.1", "7.0.2", "7.1", "7.1.1", "7.2", "7.3", "7.3.1", "7.3.2", "7.3.3", "7.4", "7.4.1", "7.4.2", "7.5", "7.5.1", "7.6"
# See here for latest versions: https://services.gradle.org/versions/
]
java: ["8", "11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
11 changes: 11 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://github.com/marketplace/actions/gradle-wrapper-validation
name: "Validate Gradle Wrapper"
on: [push, pull_request]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
92 changes: 92 additions & 0 deletions .github/workflows/java-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# See https://docs.gradle.org/current/userguide/compatibility.html
name: Java Compatibility Tests
on: [push, pull_request]
jobs:
java8-12:
name: "Compatibility: java ${{ matrix.java }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: ["5.1", "7.6"]
java: ["8", "11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
java17:
name: "Compatibility: java ${{ matrix.java }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: ["7.3", "7.6"] # See here for latest versions: https://services.gradle.org/versions/
java: ["17"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
java18:
name: "Compatibility: java ${{ matrix.java }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: ["7.5", "7.6"] # See here for latest versions: https://services.gradle.org/versions/
java: ["18"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
java-19:
name: "Compatibility: java ${{ matrix.java }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: ["7.6"] # See here for latest versions: https://services.gradle.org/versions/
java: ["19"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
continue-on-error: true
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
java-ea:
name: "Compatibility: java ${{ matrix.java }}/gradle ${{ matrix.gradle }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
avro: ["1.11.0"]
gradle: ["7.6"] # See here for latest versions: https://services.gradle.org/versions/
java: ["20-ea"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
continue-on-error: true
with:
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}
19 changes: 19 additions & 0 deletions .github/workflows/os-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: OS Compatibility
on: [push, pull_request]
jobs:
build:
name: "Compatibility: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [8] # Minimum supported major version
os: [ubuntu-latest, windows-latest, macOS-latest] # All supported OS
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
arguments: test
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 8
- uses: gradle/gradle-build-action@v2
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository -PsonatypeUsername=${{ secrets.SONATYPE_USERNAME }} -PsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
13 changes: 13 additions & 0 deletions lang/java/gradle-plugin/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

[*.yml]
indent_size = 2
Loading

0 comments on commit cd9a7a0

Please sign in to comment.