-
Notifications
You must be signed in to change notification settings - Fork 1
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
71 changed files
with
2,897 additions
and
2,852 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
# 1.0.0 | ||
|
||
Initial release with set of functions and Try | ||
Initial release with a set of Java functional interfaces and Try |
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 |
---|---|---|
@@ -1,29 +1,45 @@ | ||
import java.nio.charset.StandardCharsets | ||
|
||
plugins { | ||
id 'java' | ||
id 'java-library' | ||
|
||
id 'idea' | ||
id 'eclipse' | ||
|
||
id 'jacoco' | ||
|
||
id 'maven' | ||
id 'maven-publish' | ||
id 'com.jfrog.bintray' version "$BINTRAY_VERSION" | ||
// Publishing | ||
id 'com.vanniktech.maven.publish' version '0.25.3' | ||
|
||
id 'com.diffplug.spotless' version '6.22.0' | ||
} | ||
|
||
description = 'Java 8 extensions allowing to use checked exceptions in functional programming API and adding Try monadic interface alongside with Optional' | ||
// Project properties | ||
group = "$GROUP" | ||
version = "$VERSION_NAME" | ||
description = "$POM_DESCRIPTION" | ||
|
||
// Source code properties | ||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
compileJava.options.encoding = 'UTF-8' | ||
|
||
// Enable Spotless code formatting rules | ||
spotless { | ||
java { | ||
googleJavaFormat() | ||
} | ||
|
||
lineEndings = 'UNIX' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testImplementation "org.junit.jupiter:junit-jupiter:$JUNIT_VERSION" | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0' | ||
} | ||
|
||
test { | ||
|
@@ -35,7 +51,6 @@ task sourceJar(type: Jar, dependsOn: classes) { | |
from sourceSets.main.allSource | ||
} | ||
|
||
javadoc.failOnError = false | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
|
@@ -46,61 +61,12 @@ artifacts { | |
archives sourceJar | ||
} | ||
|
||
def pomConfig = { | ||
licenses { | ||
license { | ||
name 'MIT License' | ||
url 'https://opensource.org/licenses/MIT' | ||
distribution 'repo' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'SuppieRK' | ||
name 'Roman Khlebnov' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
url "https://github.com/SuppieRK/${project.name}" | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
groupId = "${project.group}" | ||
artifactId = "${project.name}" | ||
version = "${project.version}" | ||
from project.components.java | ||
artifact javadocJar | ||
artifact sourceJar | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode('description', "${description}") | ||
root.appendNode('name', "${project.name}") | ||
root.appendNode('url', "https://github.com/SuppieRK/${project.name}") | ||
root.children().last() + pomConfig | ||
} | ||
} | ||
} | ||
// Configure several tasks additionally for Gradle | ||
tasks.withType(Copy).configureEach { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
} | ||
|
||
bintray { | ||
user = System.getProperty('bintray.user') | ||
key = System.getProperty('bintray.key') | ||
publications = ['maven'] | ||
|
||
pkg { | ||
repo = "${project.group}" | ||
name = "${project.name}" | ||
licenses = ['MIT'] | ||
vcsUrl = "https://github.com/SuppieRK/${project.name}.git" | ||
version { | ||
name = "${project.version}" | ||
desc = "${project.version}" | ||
released = new Date() | ||
} | ||
} | ||
tasks.withType(JavaCompile).configureEach { | ||
options.encoding = StandardCharsets.UTF_8.name() | ||
dependsOn(spotlessJavaCheck) | ||
} |
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,24 @@ | ||
# General project properties | ||
group=com.github.suppie | ||
version=1.0.0 | ||
# Plugin versions | ||
BINTRAY_VERSION=1.8.5 | ||
# Library versions | ||
JUNIT_VERSION=5.6.2 | ||
SONATYPE_HOST=S01 | ||
RELEASE_SIGNING_ENABLED=true | ||
SONATYPE_AUTOMATIC_RELEASE=true | ||
|
||
GROUP=io.github.suppierk | ||
POM_ARTIFACT_ID=java-throwable-utils | ||
VERSION_NAME=1.0.0 | ||
|
||
POM_NAME=Java Throwable Utilities | ||
POM_DESCRIPTION=Java 8 compatible extensions allowing to use checked exceptions in functional programming APIs + Try interface | ||
POM_INCEPTION_YEAR=2023 | ||
POM_URL=https://github.com/SuppieRK/java-throwable-utils | ||
|
||
POM_LICENCE_NAME=MIT License | ||
POM_LICENCE_URL=https://github.com/SuppieRK/java-throwable-utils/blob/master/LICENSE | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_SCM_URL=https://github.com/SuppieRK/java-throwable-utils | ||
POM_SCM_CONNECTION=scm:git:git://github.com/SuppieRK/java-throwable-utils.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/SuppieRK/java-throwable-utils.git | ||
|
||
POM_DEVELOPER_ID=SuppieRK | ||
POM_DEVELOPER_NAME=Roman Khlebnov | ||
POM_DEVELOPER_URL=https://github.com/SuppieRK/ |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.