Skip to content

Commit

Permalink
Merge pull request tehlers#17 from sullis/github-actions-ci
Browse files Browse the repository at this point in the history
add github actions ci
  • Loading branch information
tehlers authored Oct 20, 2024
2 parents 9ceb4a1 + 7280845 commit 0de3d89
Show file tree
Hide file tree
Showing 8 changed files with 269 additions and 162 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: gradle

- run: ./gradlew clean test
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'com.github.hierynomus.license' version '0.15.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.17.0'
Expand All @@ -17,8 +17,8 @@ version = '1.3.0-SNAPSHOT'
def functionalTest = sourceSets.create("functionalTest")

dependencies {
testImplementation 'junit:junit:4.13'
functionalTestImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.2'
functionalTestImplementation 'junit:junit:4.13.2'
}

license {
Expand Down Expand Up @@ -73,17 +73,17 @@ pluginBundle {

task sourceJar( type: Jar ) {
from sourceSets.main.allGroovy
archiveClassifier = "sources"
}


publishing {
publications {
gradlePlugin( MavenPublication ) {
artifactId archivesBaseName
from components.java

artifact sourceJar {
classifier 'sources'
}
artifact sourceJar

pom.withXml {
asNode().children().last() + {
Expand Down
10 changes: 5 additions & 5 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ repositories {
}

dependencies {
compile 'c3p0:c3p0:0.9.1.2'
compile 'com.mchange:c3p0:0.9.5.2'
compile 'org.apache.xmlbeans:xmlbeans:2.6.0'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'com.datastax.cassandra:cassandra-driver-core:3.4.0'
implementation 'c3p0:c3p0:0.9.1.2'
implementation 'com.mchange:c3p0:0.9.5.2'
implementation 'org.apache.xmlbeans:xmlbeans:2.6.0'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.datastax.cassandra:cassandra-driver-core:3.4.0'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
Loading

0 comments on commit 0de3d89

Please sign in to comment.