This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update licenses to 2022-2023, add tests for uploading 1,000 and 100,0…
…00 objects in S3 using MinIO, add back Renovate
- Loading branch information
Showing
16 changed files
with
212 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
buildSrc/src/main/kotlin/org/noelware/remi/gradle/Extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -26,5 +26,5 @@ package org.noelware.remi.gradle | |
import org.gradle.api.JavaVersion | ||
import dev.floofy.utils.gradle.* | ||
|
||
val VERSION = Version(0, 5, 0, 0, ReleaseType.Snapshot) | ||
val VERSION = Version(0, 5, 1, 0, ReleaseType.Beta) | ||
val JAVA_VERSION = JavaVersion.VERSION_17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -46,11 +46,16 @@ repositories { | |
|
||
dependencies { | ||
implementation("org.jetbrains:annotations:23.0.0") | ||
implementation("org.slf4j:slf4j-api:2.0.6") | ||
|
||
// test deps | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.1") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.1") | ||
testImplementation("org.slf4j:slf4j-simple:2.0.3") | ||
testImplementation("org.slf4j:slf4j-simple:2.0.6") | ||
|
||
if (path.startsWith(":support")) { | ||
implementation(project(":core")) | ||
} | ||
} | ||
|
||
spotless { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"automerge": true, | ||
"extends": ["config:base", "default:timezone(America/Phoenix)", "docker:disableMajor"], | ||
"vulnerabilityAlerts": { | ||
"labels": ["security"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -23,13 +23,94 @@ | |
|
||
rootProject.name = "remi" | ||
|
||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
plugins { | ||
id("com.gradle.enterprise") version "3.12" | ||
} | ||
|
||
include( | ||
":bom", | ||
":core", | ||
":serialization", | ||
":support:azure", | ||
":support:fs", | ||
":support:gcs", | ||
":support:oracle-cloud", | ||
":support:s3" | ||
) | ||
|
||
gradle.settingsEvaluated { | ||
logger.info("Checking if we can overwrite cache...") | ||
val overrideBuildCacheProp: String? = System.getProperty("org.noelware.gradle.overwriteCache") | ||
val buildCacheDir = when (val prop = System.getProperty("org.noelware.gradle.cachedir")) { | ||
null -> "${System.getProperty("user.dir")}/.caches/gradle" | ||
else -> when { | ||
prop.startsWith("~/") -> "${System.getProperty("user.home")}${prop.substring(1)}" | ||
prop.startsWith("./") -> "${System.getProperty("user.dir")}${prop.substring(1)}" | ||
else -> prop | ||
} | ||
} | ||
|
||
if (overrideBuildCacheProp == null) { | ||
logger.info(""" | ||
|If you wish to override the build cache for this Gradle process, you can use the | ||
|-Dorg.noelware.gradle.overwriteCache=<bool> Java property in `~/.gradle/gradle.properties` | ||
|to overwrite it in $buildCacheDir! | ||
""".trimMargin("|")) | ||
} else { | ||
logger.info("Setting up build cache in directory [$buildCacheDir]") | ||
val file = File(buildCacheDir) | ||
if (!file.exists()) file.mkdirs() | ||
|
||
buildCache { | ||
local { | ||
directory = "$file" | ||
removeUnusedEntriesAfterDays = 7 | ||
} | ||
} | ||
} | ||
|
||
val disableJavaSanityCheck = when { | ||
System.getProperty("org.noelware.gradle.ignoreJavaCheck", "false").matches("^(yes|true|1|si|si*)$".toRegex()) -> true | ||
(System.getenv("DISABLE_JAVA_SANITY_CHECK") ?: "false").matches("^(yes|true|1|si|si*)$".toRegex()) -> true | ||
else -> false | ||
} | ||
|
||
if (disableJavaSanityCheck) | ||
return@settingsEvaluated | ||
|
||
val version = JavaVersion.current() | ||
if (version.majorVersion.toInt() < 17) | ||
throw GradleException("Developing charted-server requires JDK 17 or higher, it is currently set in [${System.getProperty("java.home")}, ${System.getProperty("java.version")}] - You can ignore this check by providing the `-Dorg.noelware.charted.ignoreJavaCheck=true` system property.") | ||
} | ||
|
||
val buildScanServer = System.getProperty("org.noelware.gradle.build-scan-server", "") ?: "" | ||
gradleEnterprise { | ||
buildScan { | ||
if (buildScanServer.isNotEmpty()) { | ||
server = buildScanServer | ||
isCaptureTaskInputFiles = true | ||
publishAlways() | ||
} else { | ||
termsOfServiceUrl = "https://gradle.com/terms-of-service" | ||
termsOfServiceAgree = "yes" | ||
|
||
// Always publish if we're on CI. | ||
if (System.getenv("CI") != null) { | ||
publishAlways() | ||
} | ||
} | ||
|
||
obfuscation { | ||
ipAddresses { listOf("0.0.0.0") } | ||
hostname { "[redacted]" } | ||
username { "[redacted]" } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -31,6 +31,4 @@ dependencies { | |
testImplementation("org.testcontainers:junit-jupiter:1.17.6") | ||
|
||
api("com.azure:azure-storage-blob:12.20.1") | ||
implementation("org.slf4j:slf4j-api:2.0.5") | ||
implementation(project(":core")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -24,8 +24,3 @@ | |
plugins { | ||
`remi-module` | ||
} | ||
|
||
dependencies { | ||
implementation("org.slf4j:slf4j-api:2.0.5") | ||
implementation(project(":core")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -27,5 +27,4 @@ plugins { | |
|
||
dependencies { | ||
api("com.google.cloud:google-cloud-storage:2.16.0") | ||
implementation(project(":core")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* 🧶 Remi: Robust, and simple Java-based library to handle storage-related communications with different storage provider. | ||
* Copyright (c) 2022 Noelware <[email protected]> | ||
* Copyright (c) 2022-2023 Noelware <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -29,6 +29,5 @@ dependencies { | |
testImplementation("org.testcontainers:testcontainers:1.17.6") | ||
testImplementation("org.testcontainers:junit-jupiter:1.17.6") | ||
|
||
implementation(project(":core")) | ||
api("software.amazon.awssdk:s3:2.18.24") | ||
api("software.amazon.awssdk:s3:2.18.35") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.