diff --git a/.github/workflows/examples-CI.yml b/.github/workflows/examples-CI.yml new file mode 100644 index 0000000..945dab4 --- /dev/null +++ b/.github/workflows/examples-CI.yml @@ -0,0 +1,29 @@ +name: Examples CI + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: examples + name: Java ${{ matrix.java }} + strategy: + matrix: + java: [8, 11, 17] + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + + - name: Build and Check + run: | + chmod +x gradlew + ./gradlew build --no-daemon diff --git a/examples/build.gradle b/examples/build.gradle index 00c1572..75a4a39 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,7 +1,8 @@ -plugins { - // unify plugin version - id 'ru.vyarus.animalsniffer' version '1.7.1' apply false -} +// see settings.gradle for plugin version +//plugins { +// // unify plugin version +// id 'ru.vyarus.animalsniffer' version '1.7.1' apply false +//} wrapper { gradleVersion = '8.6' diff --git a/examples/settings.gradle b/examples/settings.gradle index 054d42c..1eb29c2 100644 --- a/examples/settings.gradle +++ b/examples/settings.gradle @@ -1,7 +1,15 @@ pluginManagement { + resolutionStrategy { + eachPlugin { + if (requested.id.id == 'ru.vyarus.animalsniffer') { + useModule('ru.vyarus:gradle-animalsniffer-plugin:master-SNAPSHOT') + } + } + } repositories { mavenLocal() gradlePluginPortal() + maven { url 'https://jitpack.io' } } }