-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
219 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
# Publish a Snapshot Release | ||
name: Snapshot | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
|
||
name: Publish snapshot | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# ================================ | ||
# SHALLOW CLONE | ||
# ================================ | ||
- name: Shallow clone | ||
uses: actions/checkout@v4 | ||
|
||
# ================================ | ||
# SET UP JDK | ||
# ================================ | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-package: jdk | ||
java-version: 21 | ||
|
||
# ================================ | ||
# GET CURRENT VERSION | ||
# ================================ | ||
- name: Get current version | ||
id: properties | ||
run: echo "version=`./gradlew -q printProperty -Pkey=version`" >> $GITHUB_OUTPUT | ||
|
||
# ================================ | ||
# PUBLISH | ||
# ================================ | ||
- name: Publish snapshot | ||
if: endsWith(steps.properties.outputs.version, '-SNAPSHOT') | ||
env: | ||
ORG_GRADLE_PROJECT_githubUsername: ${{ secrets.PUBLISH_USERNAME }} | ||
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.PUBLISH_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
arguments: publish -Psnapshot --info --scan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
plugins { | ||
id 'me.champeau.gradle.japicmp' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
configurations { | ||
current | ||
previous | ||
} | ||
|
||
dependencies { | ||
current project(":${artifactId}") | ||
previous "${group}:${artifactId}:${previousVersion}" | ||
} | ||
|
||
tasks.register("clean", Delete) { | ||
delete layout.buildDirectory | ||
} | ||
|
||
tasks.register("check", me.champeau.gradle.japicmp.JapicmpTask) { | ||
final textReport = layout.buildDirectory.file('report.txt').get().asFile | ||
final htmlReport = layout.buildDirectory.file('report.html').get().asFile | ||
newClasspath.from(configurations.current) | ||
oldClasspath.from(configurations.previous) | ||
txtOutputFile = textReport | ||
htmlOutputFile = htmlReport | ||
onlyModified = true | ||
failOnModification = false | ||
failOnSourceIncompatibility = false | ||
doLast { | ||
logger.quiet(textReport.text) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
|
||
description = Lazy Results | ||
description = Lazy Result Library for Java | ||
group = com.leakyabstractions | ||
version = 0.6.0.0 | ||
artifactName = Lazy Result Library | ||
artifactId = result-lazy | ||
version = 0.6.1.0-SNAPSHOT | ||
previousVersion = 0.6.0.0 | ||
|
||
homepage = https://dev.leakyabstractions.com/result-lazy/ | ||
githubId = leakyabstractions/result-lazy | ||
|
@@ -21,3 +24,9 @@ organizationUrl = https://github.com/leakyabstractions/ | |
developerId = guillermocalvo | ||
developerName = Guillermo Calvo | ||
developerEmail = [email protected] | ||
|
||
sonarProjectName= result-lazy | ||
sonarProjectKey = LeakyAbstractions_result-lazy | ||
|
||
# Suppress Sonar warning (this behavior will be removed in version 5.x) | ||
systemProp.sonar.gradle.skipCompile=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.