Skip to content

Commit

Permalink
Update gradle config and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mweser committed Oct 12, 2023
1 parent d326fad commit e9cc5ab
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 9 deletions.
74 changes: 74 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
Expand Down
42 changes: 33 additions & 9 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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<MavenPublication>("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'
// }
// }
// }
//}

0 comments on commit e9cc5ab

Please sign in to comment.