Skip to content

Commit 2487c7b

Browse files
committed
build: migrate with open-source-library-migration guide
1 parent b25cc54 commit 2487c7b

19 files changed

Lines changed: 97 additions & 108 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
68
build:
@@ -10,14 +12,15 @@ jobs:
1012
- name: Checkout
1113
uses: actions/checkout@v4
1214

13-
- name: Validate Gradle Wrapper
14-
uses: gradle/wrapper-validation-action@v1
15-
1615
- name: Configure JDK
1716
uses: actions/setup-java@v4
1817
with:
19-
distribution: 'zulu'
18+
distribution: zulu
2019
java-version: '17'
20+
cache: gradle
21+
22+
- name: Validate Gradle Wrapper
23+
uses: gradle/actions/wrapper-validation@v4
2124

22-
- name: Test
25+
- name: Build
2326
run: ./gradlew build

.github/workflows/publish-release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
push:
55
tags:
66
- '*'
7+
78
env:
89
RELEASE_SIGNING_ENABLED: true
910

1011
jobs:
1112
publish:
12-
1313
runs-on: ubuntu-latest
1414
if: github.repository == 'Commit451/coil-transformations'
1515

@@ -20,16 +20,14 @@ jobs:
2020
- name: Install JDK
2121
uses: actions/setup-java@v4
2222
with:
23-
distribution: 'zulu'
24-
java-version: 17
25-
26-
- name: Set version
27-
run: sed -i "s/VERSION_NAME=0.0.1/VERSION_NAME=$GITHUB_REF_NAME/" gradle.properties
23+
distribution: zulu
24+
java-version: '17'
25+
cache: gradle
2826

2927
- name: Release to Maven Central
30-
run: ./gradlew publishToMavenCentral --no-configuration-cache
28+
run: ./gradlew publishAndReleaseToMavenCentral -PVERSION_NAME="${GITHUB_REF_NAME}" --no-configuration-cache
3129
env:
32-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
33-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
30+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
31+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
3432
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
3533
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

.jitpack.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
# coil-transformations
22
Image transformations for [Coil](https://github.com/coil-kt/coil).
33

4-
[![](https://jitpack.io/v/Commit451/coil-transformations.svg)](https://jitpack.io/#Commit451/coil-transformations)
4+
[![Build](https://github.com/Commit451/coil-transformations/actions/workflows/ci.yml/badge.svg)](https://github.com/Commit451/coil-transformations/actions/workflows/ci.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.commit451.coiltransformations/transformations.svg?label=Maven%20Central)](https://central.sonatype.com/search?q=g:com.commit451.coiltransformations)
55

66
## Download
7-
Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
8-
9-
```gradle
10-
allprojects {
11-
repositories {
12-
...
13-
maven { url "https://jitpack.io" }
14-
}
15-
}
16-
```
17-
Then, add the library to your app `build.gradle`
7+
Add the library to your app `build.gradle`:
188
```kotlin
19-
implementation("com.github.Commit451.coil-transformations:transformations:latest.version.here")
9+
implementation("com.commit451.coiltransformations:transformations:latest.version.here")
2010
```
2111
and for GPU (native) transformations (relies on [GPUImage](https://github.com/cats-oss/android-gpuimage)):
2212
```kotlin
23-
implementation("com.github.Commit451.coil-transformations:transformations-gpu:latest.version.here")
13+
implementation("com.commit451.coiltransformations:transformations-gpu:latest.version.here")
2414
```
2515
and for Google MLKit Face detection transformations:
2616
```kotlin
27-
implementation("com.github.Commit451.coil-transformations:transformations-face-detection:latest.version.here")
17+
implementation("com.commit451.coiltransformations:transformations-face-detection:latest.version.here")
2818
```
2919
## Supported Transformations
3020
These transformations are already supported in Coil itself (no need for this library):
@@ -63,7 +53,7 @@ imageView.load("https://www.example.com/image.jpg") {
6353
```
6454

6555
## Preview
66-
See a preview of the transformations [here](https://github.com/Commit451/coil-transformations/blob/master/preview/preview.md)
56+
See a preview of the transformations [here](https://github.com/Commit451/coil-transformations/blob/main/preview/preview.md)
6757

6858
## Thanks
6959
Inspired by [Glide Transformations](https://github.com/wasabeef/glide-transformations) by [wasabeef](https://github.com/wasabeef). Thanks of course to [Coil](https://github.com/coil-kt/coil) contributors for making a great image loading library.

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
alias(libs.plugins.com.android.application) apply false
33
alias(libs.plugins.com.android.library) apply false
4-
alias(libs.plugins.org.jetbrains.kotlin.android) apply false
54
alias(libs.plugins.maven.publish) apply false
65
}

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ POM_DEVELOPER_ID=Commit451
2222
POM_DEVELOPER_NAME=Commit 451
2323
POM_DEVELOPER_URL=https://github.com/Commit451/
2424

25-
# Overwritten by CI
26-
VERSION_NAME=0.0.1
25+
VERSION_NAME=3.0.8

gradle/libs.versions.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[versions]
2-
agp = "8.7.2"
3-
constraintlayout = "2.2.0"
4-
coreKtx = "1.15.0"
2+
agp = "9.1.0"
3+
constraintlayout = "2.2.1"
4+
coreKtx = "1.16.0"
55
faceDetection = "16.1.7"
66
gpuimage = "2.1.0"
7-
kotlin = "1.9.20"
8-
coil = "3.0.0"
7+
kotlin = "2.3.10"
8+
coil = "3.2.0"
99
lifecycleExtensions = "2.2.0"
10-
lifecycleLivedataKtx = "2.8.7"
11-
material = "1.12.0"
12-
recyclerview = "1.3.2"
10+
lifecycleLivedataKtx = "2.9.1"
11+
material = "1.13.0"
12+
recyclerview = "1.4.0"
1313

1414
[libraries]
1515
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }

gradle/wrapper/gradle-wrapper.jar

-13.3 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 32 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)