-
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.
Merge pull request #42 from FigureTechnologies/renovate/gradle-8.x
Update dependency gradle from `7.6.1` to `v8`
- Loading branch information
Showing
32 changed files
with
339 additions
and
224 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,11 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
} |
31 changes: 31 additions & 0 deletions
31
.build-logic/local-plugins/src/main/kotlin/with-core.gradle.kts
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,31 @@ | ||
import org.gradle.api.JavaVersion | ||
import org.gradle.kotlin.dsl.repositories | ||
|
||
val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() | ||
|
||
@Suppress("DSL_SCOPE_VIOLATION") | ||
plugins { | ||
java | ||
`java-library` | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
|
||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(platform("org.jetbrains.kotlin:kotlin-bom")) | ||
implementation("org.jetbrains.kotlin", "kotlin-stdlib-jdk8") | ||
implementation("org.jetbrains.kotlin", "kotlin-stdlib") | ||
implementation("org.jetbrains.kotlin", "kotlin-reflect") | ||
|
||
implementation(libs.bouncyCastle) | ||
} |
70 changes: 70 additions & 0 deletions
70
.build-logic/local-plugins/src/main/kotlin/with-publishing.gradle.kts
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,70 @@ | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.kotlin.dsl.get | ||
import org.gradle.kotlin.dsl.signing | ||
|
||
val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() | ||
|
||
val artifactName = if (name.startsWith("hdwallet")) name else "hdwallet-$name" | ||
|
||
inner class PublishingInfo { | ||
val group = "tech.figure" | ||
val name = "Provenance HDWallet Implementation" | ||
val description = "A collection of libraries to facilitate HDWallet usage" | ||
val url = "https://figure.tech" | ||
} | ||
|
||
val info = PublishingInfo() | ||
|
||
plugins { | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
val projectGroup = "tech.figure.hdwallet" | ||
val projectVersion = project.property("version")?.takeIf { it != "unspecified" } ?: "1.0-SNAPSHOT" | ||
|
||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("maven") { | ||
groupId = info.group | ||
artifactId = artifactName | ||
version = projectVersion.toString() | ||
|
||
from(components["java"]) | ||
|
||
pom { | ||
name.set(info.name) | ||
description.set(info.description) | ||
url.set(info.url) | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("[email protected]") | ||
name.set("Figure Technologies") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("[email protected]:FigureTechnologies/hdwallet.git") | ||
developerConnection.set("[email protected]/FigureTechnologies/hdwallet.git") | ||
url.set("https://github.com/FigureTechnologies/hdwallet") | ||
} | ||
} | ||
} | ||
} | ||
signing { | ||
setRequired { | ||
gradle.taskGraph.allTasks.any { it is PublishToMavenRepository } | ||
} | ||
sign(publishing.publications["maven"]) | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.build-logic/local-plugins/src/main/kotlin/with-testing.gradle.kts
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,12 @@ | ||
val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() | ||
|
||
plugins { | ||
`java-library` | ||
} | ||
|
||
dependencies { | ||
testImplementation(libs.bundles.junit) | ||
|
||
testImplementation(libs.commons.codec) | ||
testImplementation(libs.jackson.kotlin) | ||
} |
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,19 @@ | ||
rootProject.name = "build-logic" | ||
|
||
// This is for the kotlin-dsl | ||
dependencyResolutionManagement { | ||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() // so that external plugins can be resolved in dependencies section | ||
} | ||
|
||
// kinda hacky way to make a catalog from our own catalog, but it works! | ||
// Link: https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 | ||
versionCatalogs { | ||
create("libs") { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
} | ||
|
||
include("local-plugins") |
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,3 +1,11 @@ | ||
dependencies { | ||
implementation(project(":common")) | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
id("with-core") | ||
id("with-testing") | ||
id("with-publishing") | ||
} | ||
|
||
dependencies { | ||
implementation(projects.common) | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...rc/main/java/tech/figure/hdwallet/encoding/shadow/org/bitcoinj/core/InvalidCharacter.java
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,13 @@ | ||
package tech.figure.hdwallet.encoding.shadow.org.bitcoinj.core; | ||
|
||
/** | ||
* InvalidCharacter exception type. | ||
*/ | ||
public class InvalidCharacter extends Throwable { | ||
/** | ||
* @param c the invalid character. | ||
* @param i the location of the invalid character. | ||
*/ | ||
public InvalidCharacter(char c, int i) { | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...src/main/java/tech/figure/hdwallet/encoding/shadow/org/bitcoinj/core/InvalidChecksum.java
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,4 +1,7 @@ | ||
package tech.figure.hdwallet.encoding.shadow.org.bitcoinj.core; | ||
|
||
/** | ||
* InvalidChecksum exception type. | ||
*/ | ||
public class InvalidChecksum extends Throwable { | ||
} |
7 changes: 7 additions & 0 deletions
7
...c/main/java/tech/figure/hdwallet/encoding/shadow/org/bitcoinj/core/InvalidDataLength.java
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,9 @@ | ||
plugins { | ||
id("with-core") | ||
id("with-testing") | ||
id("with-publishing") | ||
} | ||
|
||
dependencies { | ||
implementation("commons-codec", "commons-codec", Versions.commonsCodec) | ||
implementation(libs.commons.codec) | ||
} |
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,4 +1,13 @@ | ||
plugins { | ||
id("with-core") | ||
id("with-testing") | ||
id("with-publishing") | ||
} | ||
|
||
dependencies { | ||
listOf(":base58", ":bip39", ":bip44", ":ec", ":common") | ||
.map { implementation(project(it)) } | ||
implementation(projects.base58) | ||
implementation(projects.bip39) | ||
implementation(projects.bip44) | ||
implementation(projects.ec) | ||
implementation(projects.common) | ||
} |
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,10 @@ | ||
plugins { | ||
id("with-core") | ||
id("with-testing") | ||
id("with-publishing") | ||
} | ||
|
||
dependencies { | ||
implementation(project(":common")) | ||
testImplementation("commons-codec", "commons-codec", Versions.commonsCodec) | ||
testImplementation("com.fasterxml.jackson.module", "jackson-module-kotlin", Versions.jackson) | ||
implementation(projects.common) | ||
implementation(libs.bouncyCastle) | ||
} |
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,2 +1,5 @@ | ||
dependencies { | ||
} | ||
plugins { | ||
id("with-core") | ||
id("with-testing") | ||
id("with-publishing") | ||
} |
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.