Skip to content

Commit b474f66

Browse files
aschemanclaude
andcommitted
Configure Jitpack to just install (w/o tests)
Add install section to jitpack.yml to just build and install to local repository. We run tests on GitHub and can even better analyze probable problems there - so testing is not necessary on Jitpack. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2d1b66c commit b474f66

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

htmlSanityCheck-maven-plugin/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class CrossPlatformExec extends Exec {
6464
} else {
6565
executable = './mvnw'
6666
}
67+
logger.quiet("Executing command: ${executable} ${commandArgs.join(' ')}")
6768
args(commandArgs.toList())
6869
}
6970
}

htmlSanityCheck-maven-plugin/settings.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,21 @@
22
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
44

5-
<localRepository>../build/maven-repo</localRepository>
5+
<profiles>
6+
<profile>
7+
<id>use-yet-another-local-repo</id>
8+
<activation>
9+
<activeByDefault>true</activeByDefault>
10+
</activation>
11+
<repositories>
12+
<repository>
13+
<id>Yet Another Local</id>
14+
<url>file:../build/maven-repo</url>
15+
<snapshots>
16+
<enabled>true</enabled>
17+
</snapshots>
18+
</repository>
19+
</repositories>
20+
</profile>
21+
</profiles>
622
</settings>

jitpack.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
before_install:
2-
- sdk install java 17.0.10-tem
3-
- sdk use java 17.0.10-tem
2+
- sdk install java 17.0.17-tem
3+
- sdk use java 17.0.17-tem
4+
install:
5+
- version=$(git branch --show-current | tr '/' '~')-SNAPSHOT
6+
- sed -r -i.bak "s/^htmlSanityCheckVersion=.+/htmlSanityCheckVersion='$version'/g" gradle.properties
7+
- ./gradlew clean build publishToMavenLocal -x test

0 commit comments

Comments
 (0)