This commit is contained in:
Sean Gilligan 2025-03-11 12:21:09 -05:00 committed by GitHub
commit ab8792c07e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 31 additions and 6 deletions

View file

@ -33,7 +33,7 @@ jobs:
with: with:
gradle-version: ${{ matrix.gradle }} gradle-version: ${{ matrix.gradle }}
- name: Run Gradle - name: Run Gradle
run: gradle -PtestJdk8=true build bitcoinj-wallettemplate:installDist bitcoinj-wallettemplate:jlink --init-script build-scan-agree.gradle --scan --info --stacktrace run: gradle build bitcoinj-wallettemplate:installDist bitcoinj-wallettemplate:jlink --init-script build-scan-agree.gradle --scan --info --stacktrace
- name: Upload Test Results and Reports - name: Upload Test Results and Reports
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: always() if: always()

View file

@ -21,7 +21,7 @@ dependencies {
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['--release', '8']) options.compilerArgs.addAll(['--release', '9'])
options.compilerArgs << '-Xlint:deprecation' options.compilerArgs << '-Xlint:deprecation'
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
} }

View file

@ -18,6 +18,9 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
mavenCentral() mavenCentral()
maven {
url 'https://gitlab.com/api/v4/projects/55956336/packages/maven' // secp256k1-jdk
}
} }
group = 'org.bitcoinj' group = 'org.bitcoinj'

View file

@ -10,9 +10,11 @@ version = '0.18-SNAPSHOT'
dependencies { dependencies {
api project(':bitcoinj-base') api project(':bitcoinj-base')
api 'org.bouncycastle:bcprov-jdk15to18:1.80' //api 'org.bouncycastle:bcprov-jdk15to18:1.80'
api 'com.google.guava:guava:33.4.0-android' api 'com.google.guava:guava:33.4.0-android'
api 'com.google.protobuf:protobuf-javalite:4.29.3' api 'com.google.protobuf:protobuf-javalite:4.29.3'
api 'org.bitcoinj.secp:secp-api:0.1'
implementation 'org.bitcoinj.secp:secp-bouncy:0.1'
implementation 'org.slf4j:slf4j-api:2.0.16' implementation 'org.slf4j:slf4j-api:2.0.16'
testImplementation project(':bitcoinj-test-support') testImplementation project(':bitcoinj-test-support')
@ -40,7 +42,7 @@ if (GradleVersion.current() > gradleVersionTargetJVM) {
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['--release', '8']) options.compilerArgs.addAll(['--release', '9'])
options.compilerArgs << '-Xlint:deprecation' options.compilerArgs << '-Xlint:deprecation'
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
} }

View file

@ -0,0 +1,20 @@
package org.bitcoinj.crypto;
import org.bitcoinj.secp.api.P256K1KeyPair;
import org.bitcoinj.secp.api.Secp256k1;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
/**
* A quick test to make sure we can load and execute the secp-api and secp-bouncy.
*/
public class SecpJdkSmokeTest {
@Test
public void smoke() {
try (Secp256k1 secp = Secp256k1.getByName("bouncy-castle")) {
P256K1KeyPair keypair = secp.ecKeyPairCreate();
assertNotNull(keypair);
}
}
}

View file

@ -7,7 +7,7 @@ dependencies {
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['--release', '8']) options.compilerArgs.addAll(['--release', '9'])
options.compilerArgs << '-Xlint:deprecation' options.compilerArgs << '-Xlint:deprecation'
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
} }

View file

@ -36,7 +36,7 @@ application {
} }
jlink { jlink {
options = ['--add-modules', 'org.slf4j.jul'] options = ['--add-modules', 'org.slf4j.jul', '--ignore-signing-information']
} }
test { test {