You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val connection = java.net.URL("https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.pom").openConnection() as java.net.HttpURLConnection
23
+
connection.requestMethod ="HEAD"
24
+
connection.connectTimeout =2000
25
+
connection.readTimeout =2000
26
+
connection.useCaches =false
27
+
connection.responseCode ==200
28
+
} catch (e:Exception) {
29
+
false
30
+
}
31
+
val mavenCentralMirrorUrl ="https://maven-central.storage-api.googleapis.com/repos/central/data/"
32
+
33
+
repositories {
34
+
if (isMavenAccessible) {
35
+
gradlePluginPortal()
36
+
} else {
37
+
maven { url = uri(mavenCentralMirrorUrl) }
38
+
gradlePluginPortal()
39
+
}
40
+
}
21
41
plugins {
22
42
id("org.javacc.javacc") version "4.0.3"// enable the JavaCC parser generator
0 commit comments