Skip to content

Commit

Permalink
- Upgrading to Gradle 8.5
Browse files Browse the repository at this point in the history
- Upgrading to Kotlin to 1.9.22
- Upgrading to Array to 1.2.1
  • Loading branch information
harikrishnan83 committed Jan 4, 2025
1 parent 8d81800 commit 2f10b17
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 198 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,22 @@ on:

jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
java-version: '21'
distribution: 'temurin'
cache: 'gradle'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

run: ./gradlew build
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

.gradle/
build/
.idea/*
*.iml
target/*
.DS_Store
*.iws
*.ipr
.java-version
46 changes: 14 additions & 32 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,52 +1,34 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin application project to get you started.
*/

plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id 'org.jetbrains.kotlin.jvm' version '1.6.21'

// Apply the application plugin to add support for building a CLI application.
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.kotlin.kapt' version '1.9.22'
id 'application'
id 'idea'
}

apply plugin: 'kotlin-kapt'

repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
jcenter()
maven { url "https://dl.bintray.com/arrow-kt/arrow-kt/" }
}

def arrow_version = "0.10.5"
def arrowVersion = "1.2.1"
def junitVersion = "5.10.1"

dependencies {
compile "io.arrow-kt:arrow-core:$arrow_version"
compile "io.arrow-kt:arrow-syntax:$arrow_version"
kapt "io.arrow-kt:arrow-meta:$arrow_version"

// Align versions of all Kotlin components
implementation platform('org.jetbrains.kotlin:kotlin-bom')

// Use the Kotlin JDK 8 standard library.
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.9.2')

testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'

implementation "io.arrow-kt:arrow-core:$arrowVersion"
implementation "io.arrow-kt:arrow-fx-coroutines:$arrowVersion"

testImplementation "org.assertj:assertj-core:3.25.1"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}

test {
useJUnitPlatform()
}

application {
// Define the main class for the application.
mainClassName = 'RailwayOrientedProgramming.AppKt'
}
mainClass = 'RailwayOrientedProgramming.AppKt'
}
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-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 2f10b17

Please sign in to comment.