Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,31 @@ jobs:
with:
flags: java

gradle:
name: Java/Gradle
runs-on: ubuntu-latest
needs: java
env:
working-directory: ./tools/apprunner-gradle-plugin
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Populate version from maven
run: mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file ../pom.xml > version.txt
working-directory: ${{env.working-directory}}
- name: Build with Gradle
run: ./gradlew build
working-directory: ${{env.working-directory}}

python:
name: Python
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Maven
run: mvn -B install javadoc:javadoc-no-fork --file pom.xml -Pcode-coverage,jdk8-tests
env:
Expand All @@ -77,6 +83,12 @@ jobs:
- uses: codecov/codecov-action@v1
with:
flags: java
- name: Populate version from maven
run: mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file ../pom.xml > version.txt
working-directory: ./tools/apprunner-gradle-plugin
- name: Build with Gradle
run: ./gradlew build
working-directory: ./tools/apprunner-gradle-plugin

python:
name: Python
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ node_modules/
.project
.settings
.checkstyle
.gradle
build

# gradle
gradle/
out
gradle/wrapper/gradle-wrapper.jar
version.txt
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ limitations under the License.
<exclude>**/*.gz</exclude>
<exclude>**/*.xls</exclude>
<exclude>**/META-INF/services/**</exclude>
<exclude>**/META-INF/gradle-plugins/**</exclude>
<exclude>**/*.md</exclude>
<exclude>**/*.xls</exclude>
<exclude>**/*.doc</exclude>
Expand Down Expand Up @@ -875,6 +876,7 @@ limitations under the License.
<exclude>**/q</exclude>
<exclude>**/c.java</exclude>
<exclude>**/swagger-ui/**</exclude>
<exclude>**/gradlew</exclude>

<!-- by directory name -->
<exclude>**/node_modules/**</exclude>
Expand Down
62 changes: 62 additions & 0 deletions tools/apprunner-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.12.0'
}

version = file('version.txt').text.trim()

allprojects {
group = "org.projectnessie"
version = version
repositories {
mavenCentral()
mavenLocal()
}
}

gradlePlugin {
plugins {
simplePlugin {
id = 'org.projectnessie'
implementationClass = 'com.dremio.nessie.quarkus.gradle.QuarkusAppPlugin'
displayName = 'Quarkus App Runner'
description = 'Start and stop a quarkus app as gradle tasks for integration testing'
}
}
}

repositories {
mavenCentral()
}

compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}

dependencies {
implementation platform('io.quarkus:quarkus-bom:1.9.0.Final')

compile "io.quarkus:quarkus-bootstrap-core"
compile "org.projectnessie:nessie-apprunner-maven-plugin:$version"
compile "org.eclipse.microprofile.config:microprofile-config-api"
}

pluginBundle {
website = 'https://projectnessie.org'
vcsUrl = 'https://github.com/projectnessie/nessie'
tags = ['test', 'integration', 'quarkus']
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'org.projectnessie'
artifactId = 'nessie-apprunner-gradle-plugin'
version = version

from components.java
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
176 changes: 176 additions & 0 deletions tools/apprunner-gradle-plugin/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions tools/apprunner-gradle-plugin/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

rootProject.name = 'quarkus-apprunner'

Loading