Compare commits
2 Commits
conflux@1.
...
conflux@1.
| Author | SHA1 | Date | |
|---|---|---|---|
|
90d4e063af
|
|||
|
288fbfe0cc
|
@@ -8,7 +8,7 @@ values and react to their changes in a clean and decoupled way.
|
|||||||
|
|
||||||
## Key Features
|
## Key Features
|
||||||
|
|
||||||
- Shared context for storing and retrieving named values
|
- Shared context for storing and retrieving named values
|
||||||
- Publish/subscribe event bus for listening to value changes
|
- Publish/subscribe event bus for listening to value changes
|
||||||
- Simple API for easy integration into existing projects
|
- Simple API for easy integration into existing projects
|
||||||
- Enables modular design by decoupling components through events
|
- Enables modular design by decoupling components through events
|
||||||
|
|||||||
36
build.gradle
36
build.gradle
@@ -36,27 +36,31 @@ tasks.named('test') {
|
|||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
if (project.hasProperty('giteaToken') && project.giteaToken) {
|
||||||
publications {
|
publishing {
|
||||||
mavenJava(MavenPublication) {
|
publications {
|
||||||
from components.java
|
mavenJava(MavenPublication) {
|
||||||
}
|
from components.java
|
||||||
}
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
name = "GiteaMaven"
|
|
||||||
url = uri("https://gitea.egothor.org/api/packages/Egothor/maven")
|
|
||||||
|
|
||||||
credentials(HttpHeaderCredentials) {
|
|
||||||
name = "Authorization"
|
|
||||||
value = "token ${giteaToken}"
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "GiteaMaven"
|
||||||
|
url = uri("https://gitea.egothor.org/api/packages/Egothor/maven")
|
||||||
|
|
||||||
authentication {
|
credentials(HttpHeaderCredentials) {
|
||||||
header(HttpHeaderAuthentication)
|
name = "Authorization"
|
||||||
|
value = "token ${giteaToken}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
println "No giteaToken defined - skipping publishing configuration"
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { taskGraph ->
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
# This file was generated by the Gradle 'init' task.
|
|
||||||
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
|
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
commons-math3 = "3.6.1"
|
|
||||||
guava = "33.1.0-jre"
|
|
||||||
junit-jupiter = "5.10.2"
|
junit-jupiter = "5.10.2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
commons-math3 = { module = "org.apache.commons:commons-math3", version.ref = "commons-math3" }
|
|
||||||
guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
|
||||||
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
|
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
|
||||||
|
|||||||
Reference in New Issue
Block a user