Skip to content

Commit

Permalink
update maven webpage version number & wording
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Sep 2, 2024
1 parent df336dd commit dd4898e
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package xyz.wagyourtail.jvmdg.site.maven.html

import io.ktor.server.html.*
import kotlinx.html.*
import xyz.wagyourtail.jvmdg.site.html.About
import xyz.wagyourtail.jvmdg.site.maven.Settings

class Maven : Template<HTML> {
val version = Maven::class.java.`package`.specificationVersion ?: "1.1.0"

override fun HTML.apply() {
head {
Expand Down Expand Up @@ -34,6 +36,7 @@ class Maven : Template<HTML> {
+"JvmDowngrader"
}
+" library to modify the bytecode of the jars before they are sent to the client."
+" This is an alternative to using the plugin in gradle."
}
p {
+"To use this mirror, simply add the maven to your project's repositories: "
Expand All @@ -49,7 +52,7 @@ class Maven : Template<HTML> {
+" so for example, to get a java 9 version of jvmdowngrader-java-api, you would use "
br {}
code {
+"jvmdg-9.xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:0.7.1"
+"jvmdg-9.xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:${version}"
}
br {}
+"If the artifact's artifactId starts with its groupId, the artifactId is also transformed in this way."
Expand All @@ -61,24 +64,13 @@ class Maven : Template<HTML> {
+"You do also need to depend on jvmdowngrader's api. this can actually be done through the mirror as well."
br {}
+"Or you can depend on one of the "
a(href = "https://repo1.maven.org/maven2/xyz/wagyourtail/jvmdowngrader/jvmdowngrader-java-api/0.7.1/") {
a(href = "https://repo1.maven.org/maven2/xyz/wagyourtail/jvmdowngrader/jvmdowngrader-java-api/${version}/") {
+"pre-downgraded artifacts on central"
}
+"."
}
code {
+"xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:0.7.1:downgraded-8"
}
p {
+"It is "
b {
+"strongly"
}
+". such as: "
br {}
code {
+"xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:0.7.1:downgraded-8"
}
+"xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:${version}:downgraded-8"
}
p {
+"The following mavens are curently mirrored: "
Expand Down

0 comments on commit dd4898e

Please sign in to comment.