From e9cc5abdc03c179994e7616846d76d34c892c333 Mon Sep 17 00:00:00 2001 From: Matthew Weser Date: Thu, 12 Oct 2023 14:21:43 -0700 Subject: [PATCH] Update gradle config and gitignore --- .gitignore | 74 +++++++++++++++++++++++++++++++++++++++++++++++ core/build.gradle | 42 +++++++++++++++++++++------ 2 files changed, 107 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 2c21d5cc6d7..4f20e25d52d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,77 @@ +version.properties + +# Ignore all files in sms_routes directory +src/main/resources/sms_routes/* + +# But do not ignore template files +!src/main/resources/sms_routes/*.template + +gradle.properties +*admin_users.csv +*env_routing.csv + +data/signaldata/ + + +bashscripts_mac.sh +.gradle/ +.idea/* +!.idea/codeStyles/ +build/ +*~ +*.swp +*.iml +local.properties +.classpath +.project +.settings/ +out/ +.DS_Store +/bin/ +/test-config/ +/version.txt +*RoutingConfig.kt +*.iml* +*.idea* +*out/* +target/* +*/*.class +*database/* + +### Java ### +*.class + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +### Gradle ### +.gradle +*/build/* +build/* + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + + + target build .gradle diff --git a/core/build.gradle b/core/build.gradle index 69e2f22a7eb..e3772723c20 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -122,16 +122,40 @@ artifacts { } publishing { - publications { - mavenJava(MavenPublication) { - artifactId = 'bitcoinj-core' - from components.java - artifact sourcesJar - artifact javadocJar - - pom { - description = 'A Java Bitcoin library' + // publish or publishToMavenLocal + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/undercurrent-ai/$repoName") + credentials { + username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") } } } + publications { + register("gpr") { + groupId = "$group" // Set the groupId + artifactId = "$repoName" // Set the artifactId + version = "$version" // Set the version + + from(components["java"]) + } + } } + + +//publishing { +// publications { +// mavenJava(MavenPublication) { +// artifactId = 'bitcoinj-core' +// from components.java +// artifact sourcesJar +// artifact javadocJar +// +// pom { +// description = 'A Java Bitcoin library' +// } +// } +// } +//}