Skip to content

Commit

Permalink
add GitHub Actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Oct 19, 2024
1 parent 9ceb4a1 commit 69f57b3
Show file tree
Hide file tree
Showing 8 changed files with 268 additions and 161 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
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 69f57b3

Please sign in to comment.