Skip to content
Draft
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
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

on:
push:
branches: [ "**" ]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot enable action level caching for Gradle

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in commit 3fea20a — added cache: gradle to the actions/setup-java step, which uses the built-in Gradle cache support to cache ~/.gradle/caches and ~/.gradle/wrapper.

with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Run tests
run: ./gradlew test
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target
# Gradle
.gradle/
build/

#################
## Eclipse
Expand Down Expand Up @@ -171,7 +173,4 @@ pip-log.txt
!/.idea/codeStyles
!/.idea/modules.iml
!/.idea/modules/*.iml
!/.idea/codeStyleSettings.xml

/project/target
/project/project/target
!/.idea/codeStyleSettings.xml
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ gives access to the mother and father names, so it could generate matronymics an
Building
--------

Get [SBT][1] and run `sbt package`.

[1]: http://www.scala-sbt.org/download.html
Requires Java 17+. Run `./gradlew build` to compile and test.
23 changes: 23 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
plugins {
kotlin("jvm") version "2.0.21"
}

group = "uk.co.halfninja"
version = "0.3"

repositories {
mavenCentral()
}

dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

tasks.test {
useJUnitPlatform()
}

kotlin {
jvmToolchain(17)
}
23 changes: 0 additions & 23 deletions build.sbt

This file was deleted.

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions gradlew

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

Loading