Skip to content

Commit

Permalink
Add comments to the default repository.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 27, 2024
1 parent 97b9963 commit fc0ba42
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ class PluginRepositoryManager(
if(repo.value !is String)
throw InvalidFileException("Invalid repository URL in repository.toml. $UNSURE_USER_HELP")

resolver.withRemoteRepo(repo.key, repo.value as String, "default")
var repoUrl = repo.value as String
if(!repoUrl.endsWith("/")) {
repoUrl += "/"
}

resolver.withRemoteRepo(repo.key, repoUrl, "default")

logger.info("Added repository ${repo.key} with URL ${repo.value}")
logger.info("Added repository ${repo.key} with URL ${repoUrl}")
}
}

Expand Down
7 changes: 6 additions & 1 deletion EOCV-Sim/src/main/resources/repository.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[repositories]
# Declare the URL of the Maven repositories to use, with a friendly name.
# The URL must preferably end with a slash to be handled correctly.
central = "https://repo.maven.apache.org/maven2/"
jitpack = "https://jitpack.io/"

[plugins]
PaperVision = "com.github.deltacv:PaperVision:1.0.0"
# Declare the plugin ID and the Maven coordinates of the plugin, similar to how you do it in Gradle.
# (group:artifact:version) which will be used to download the plugin from one of Maven repositories.
# Any dependency that does not have a plugin.toml in its jar will not be considered after download.
PaperVision = "com.github.deltacv.PaperVision:EOCVSimPlugin:40a30a8965"

0 comments on commit fc0ba42

Please sign in to comment.