Skip to content

Commit

Permalink
Merge 4f65630 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 23, 2022
2 parents 78f70a7 + 4f65630 commit 4e7a1c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ the [Signing](https://docs.gradle.org/current/userguide/signing_plugin.html) and

<details><summary>Why not publish with plugins?</summary>


- Building locally
- Publishing somewhere

Expand Down Expand Up @@ -267,19 +266,20 @@ myrootproject/

</details>



# Publishing

<details><summary>Keep in mind</summary>

When publishing, the servers may not return meaningful error responses. They
often return a generic "500 Internal Server Error" code, or accept the file, but
never publish it as a maven package.
When publishing, the servers may not return meaningful error responses.

They often return a generic "500 Internal Server Error" code, spontaneous
"403 Forbidden" or accept the file, but never publish it as a maven package.

If publishing a package fails for any reason, sometimes this can be fixed by:

If publishing a package fails for any reason, the problem may be in the meta
data. Something does not match with something: package name, authors,
signatures.
* retrying
* retrying later
* editing your package's metadata

</details>

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "io.github.rtmigo"
version = "0.5.0" // -SNAPSHOT
version = "0.5.1-SNAPSHOT" //

repositories {
mavenCentral()
Expand Down
12 changes: 12 additions & 0 deletions src/main/kotlin/maven/PomParsing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ data class PomXml(val xml: String) {
.firstOrNull()?.text()?.toInt() })
?: 8

// fun mavenCompilerTarget(): Int = mavenCompiler("maven.compiler.target")
//
// // https://www.baeldung.com/maven-java-version#compiler
// private fun mavenCompiler(tag: String): Int =
// rethrowingState(
// {"POM error: $tag"},
// {
// projectElement.selectXpath("properties/$tag")
// .firstOrNull()?.text()?.toInt() })
// ?: 6


fun group() = Group(required("project > groupId"))

fun version() = Version(required("project > version"))
Expand Down

0 comments on commit 4e7a1c1

Please sign in to comment.