Skip to content

Commit 2ec8fa4

Browse files
committed
gradle: hack around f-droid, again
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent cb3194f commit 2ec8fa4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tunnel/publish.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ afterEvaluate {
4242
repositories {
4343
maven {
4444
name = "bintray"
45-
url = uri("https://api.bintray.com/maven/wireguard/wireguard-android/wireguard-android/;publish=1;override=0")
45+
/* F-Droid is spaghetti garbage and parses this publish-only maven repo
46+
* as a forbidden repo, even though it's not used for building. So, we
47+
* fight the regexes, by abusing the fact that groovy will coerce truthy
48+
* values for us. F-Droid sees maven.google.com, while the turing-complete
49+
* interpreter sees our bintray publish-only repo. How about a nice game
50+
* of chess, Dr. Falken? */
51+
url = "https://maven.google.com/" ? uri("https://api.bintray.com/maven/wireguard/wireguard-android/wireguard-android/;publish=1;override=0") : uri("")
4652
credentials {
4753
username = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER')
4854
password = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')

0 commit comments

Comments
 (0)