Skip to content
Merged
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
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy

on:
push:
tags: [ "*" ]

concurrency:
group: ${{ github.workflow }}

jobs:
maven-central:
name: Maven Central
runs-on: macos-latest

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: "17"
distribution: "temurin"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5

- name: Cache Kotlin/Native toolchains
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('settings.gradle.kts') }}
restore-keys: |
${{ runner.os }}-konan-

- name: Publish to Maven Central
run: |
./gradlew publishToMavenCentral \
-PmavenCentralUsername=${{ secrets.CENTRAL_PORTAL_USER }} \
-PmavenCentralPassword=${{ secrets.CENTRAL_PORTAL_PASSWORD }} \
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }} \
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }} \
-PVERSION_NAME=${GITHUB_REF_NAME#v}
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kotlin-math

[![kotlin-math](https://maven-badges.herokuapp.com/maven-central/dev.romainguy/kotlin-math/badge.svg?subject=kotlin-math)](https://maven-badges-generator.herokuapp.com/maven-central/dev.romainguy/kotlin-math)
![Maven Central Version](https://img.shields.io/maven-central/v/io.technoirlab/kotlin-math)

Set of Kotlin APIs to make graphics math easier to write. These APIs are mostly
modeled after GLSL (OpenGL Shading Language) to make porting code to and from
Expand All @@ -20,22 +20,15 @@ This project supports multi-platform thanks to [ekgame](https://github.com/ekgam
## Maven

```gradle
repositories {
// ...
mavenCentral()
kotlin {
sourceSets {
commonMain {
dependencies {
implementation("io.technoirlab:kotlin-math:<latest version>")
}
}
}
}

dependencies {
implementation 'dev.romainguy:kotlin-math:1.6.0'
}
```

## Building the project

Simply run the following command to generate `build/libs/kotlin-math.jar`:

```bash
$ ./gradlew assemble
```

## Types
Expand Down
15 changes: 7 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
GROUP=dev.romainguy
VERSION_NAME=1.6.0
GROUP=io.technoirlab
VERSION_NAME=1.7.0

POM_DESCRIPTION=Graphics oriented math library for Kotlin
POM_DESCRIPTION=Graphics-oriented math library for Kotlin

POM_NAME=Kotlin Math
POM_ARTIFACT_ID=kotlin-math
POM_PACKAGING=jar

POM_URL=https://github.com/romainguy/kotlin-math
POM_SCM_URL=https://github.com/romainguy/kotlin-math
POM_SCM_CONNECTION=scm:git:git://github.com/romainguy/kotlin-math.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/romainguy/kotlin-math.git
POM_URL=https://github.com/technoir-lab/kotlin-math
POM_SCM_URL=https://github.com/technoir-lab/kotlin-math
POM_SCM_CONNECTION=scm:git:git://github.com/technoir-lab/kotlin-math.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/technoir-lab/kotlin-math.git

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
Expand Down