Skip to content

Commit

Permalink
Converted project to GitHub Actions, upgraded Kotlin to 1.9.24
Browse files Browse the repository at this point in the history
  • Loading branch information
pwall567 committed Jul 25, 2024
1 parent 4682502 commit 0a6b262
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
cache: maven
- name: Build with mvn package
run: mvn -B --no-transfer-progress package
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set up signing key
run: |
# there's probably a better way of doing this!
echo -e "${{ secrets.MAVEN_GPG_PRIVATE_KEY_E }}" | gpg --batch --import
- name: Build and deploy with mvn deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: mvn -B --no-transfer-progress deploy
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [3.0] - 2024-07-25
### Added
- `build.yml`, `deploy.yml`: converted project to GitHub Actions
### Changed
- `pom.xml`: updated dependency versions, upgraded Kotlin version to 1.9.24
### Removed
- `.travis.yml`

## [2.7] - 2024-03-11
### Changed
- `Context`: fixed bug in accessing `List`s
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# mustache-k

[![Build Status](https://travis-ci.com/pwall567/mustache-k.svg?branch=main)](https://app.travis-ci.com/github/pwall567/mustache-k)
[![Build Status](https://github.com/pwall567/mustache-k/actions/workflows/build.yml/badge.svg)](https://github.com/pwall567/mustache-k/actions/workflows/build.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Kotlin](https://img.shields.io/static/v1?label=Kotlin&message=v1.8.22&color=7f52ff&logo=kotlin&logoColor=7f52ff)](https://github.com/JetBrains/kotlin/releases/tag/v1.8.22)
[![Kotlin](https://img.shields.io/static/v1?label=Kotlin&message=v1.9.24&color=7f52ff&logo=kotlin&logoColor=7f52ff)](https://github.com/JetBrains/kotlin/releases/tag/v1.9.24)
[![Maven Central](https://img.shields.io/maven-central/v/io.kjson/mustache-k?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.kjson%22%20AND%20a:%mustache-k%22)

[Mustache](https://mustache.github.io/mustache.5.html) template processor for Kotlin
Expand Down Expand Up @@ -350,25 +350,25 @@ For example:

## Dependency Specification

The latest version of the library is 2.7, and it may be obtained from the Maven Central repository.
The latest version of the library is 3.0, and it may be obtained from the Maven Central repository.

### Maven
```xml
<dependency>
<groupId>io.kjson</groupId>
<artifactId>mustache-k</artifactId>
<version>2.7</version>
<version>3.0</version>
</dependency>
```
### Gradle
```groovy
implementation 'io.kjson:mustache-k:2.7'
implementation 'io.kjson:mustache-k:3.0'
```
### Gradle (kts)
```kotlin
implementation("io.kjson:mustache-k:2.7")
implementation("io.kjson:mustache-k:3.0")
```

Peter Wall

2024-03-11
2024-07-25
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>mustache-k</artifactId>
<version>2.7</version>
<version>3.0</version>
<name>Mustache template processor for Kotlin</name>
<packaging>jar</packaging>
<url>https://github.com/pwall567/mustache-k</url>

<parent>
<groupId>io.kjson</groupId>
<artifactId>kjson-maven</artifactId>
<version>4.0</version>
<version>5.0</version>
</parent>

<properties>
Expand Down Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>io.kjson</groupId>
<artifactId>kjson-core</artifactId>
<version>7.2</version>
<version>9.0</version>
</dependency>
<dependency>
<groupId>net.pwall.util</groupId>
Expand All @@ -72,17 +72,17 @@
<dependency>
<groupId>io.kjson</groupId>
<artifactId>resource-loader</artifactId>
<version>4.2</version>
<version>5.0</version>
</dependency>
<dependency>
<groupId>net.pwall.util</groupId>
<artifactId>co-int-output</artifactId>
<version>2.5</version>
<version>2.6</version>
</dependency>
<dependency>
<groupId>net.pwall.util</groupId>
<artifactId>co-pipelines</artifactId>
<version>2.4</version>
<version>3.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand All @@ -95,7 +95,7 @@
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>1.6.2</version>
<version>1.8.1</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down

0 comments on commit 0a6b262

Please sign in to comment.