Skip to content

Commit

Permalink
Make builds reproducible
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Brandes <[email protected]>
  • Loading branch information
NotMyFault committed Apr 15, 2024
1 parent ec5e863 commit f6ba1b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ arkitektonika.upload(new File("your/file.schem")).whenComplete((keys, throwable)

## Dependencies

The client uses [HTTP4j](https://github.com/Sauilitired/HTTP4J) to interact with the Arkitektonika
The client uses [HTTP4J](https://github.com/Sauilitired/HTTP4J) to interact with the Arkitektonika
REST API. This will need to be available on the classpath for the client to function.

## Maven Deployment
Expand All @@ -39,7 +39,7 @@ repositories {
}

dependencies {
compileOnly("com.intellectualsites.arkitektonika:Arkitektonika-Client:2.1.2")
compileOnly("com.intellectualsites.arkitektonika:Arkitektonika-Client:VERSION")
}
```

Expand All @@ -48,7 +48,7 @@ dependencies {
<dependency>
<groupId>com.intellectualsites.arkitektonika</groupId>
<artifactId>Arkitektonika-Client</artifactId>
<version>2.1.2</version>
<version>VERSION</version>
</dependency>
</dependencies>
```
12 changes: 9 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
implementation("org.jetbrains:annotations:24.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.2")
compileOnly("com.google.code.gson:gson:2.8.8")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.3.0")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.16")
}

java {
Expand Down Expand Up @@ -67,16 +67,22 @@ tasks {
"implNote:a:Implementation Note:"
)
opt.addBooleanOption("html5", true)
opt.links("https://javadoc.io/doc/org.jetbrains/annotations/24.0.0/")
opt.links("https://javadoc.io/doc/org.jetbrains/annotations/24.1.0/")
opt.isLinkSource = true
opt.isUse = true
opt.encoding("UTF-8")
opt.keyWords()
opt.noTimestamp()
}

withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
}

signing {
if (!version.toString().endsWith("-SNAPSHOT")) {
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
Expand Down

0 comments on commit f6ba1b5

Please sign in to comment.