Comments (5)
I could switch it to a regular binary. I don't really want to use kscript.
from adb-event-mirror.
Is that actually a problem in practice?
from adb-event-mirror.
With draconian network restrictions at work we cannot access public repos (https://repo1.maven.org) - we need to proxy through corporate maven or access local m2.
:: problems summary ::
:::: WARNINGS
module not found: com.github.ajalt#clikt;2.8.0
==== central: tried
https://repo1.maven.org/maven2/com/github/ajalt/clikt/2.8.0/clikt-2.8.0.pom
-- artifact com.github.ajalt#clikt;2.8.0!clikt.jar:
https://repo1.maven.org/maven2/com/github/ajalt/clikt/2.8.0/clikt-2.8.0.jar
:::: ERRORS
Server access error at url https://repo1.maven.org/maven2/com/github/ajalt/clikt/2.8.0/clikt-2.8.0.pom (javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
Server access error at url https://repo1.maven.org/maven2/com/github/ajalt/clikt/2.8.0/clikt-2.8.0.jar (javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
error: cannot access script base class 'org.jetbrains.kotlin.mainKts.MainKtsScript'. Check your module classpath for missing or conflicting dependencies (adb-event-mirror.main.kts:3:1)
error: unresolved reference: DependsOn (adb-event-mirror.main.kts:3:7)
error: unresolved reference: github (adb-event-mirror.main.kts:5:12)
error: unresolved reference: github (adb-event-mirror.main.kts:6:12)
error: unresolved reference: github (adb-event-mirror.main.kts:7:12)
error: unresolved reference: github (adb-event-mirror.main.kts:8:12)
error: unresolved reference: github (adb-event-mirror.main.kts:9:12)
error: unresolved reference: github (adb-event-mirror.main.kts:10:12)
error: unresolved reference: main (adb-event-mirror.main.kts:13:23)
error: unresolved reference: args (adb-event-mirror.main.kts:13:28)
error: unresolved reference: CliktCommand (adb-event-mirror.main.kts:15:32)
error: unresolved reference: option (adb-event-mirror.main.kts:16:23)
error: unresolved reference: option (adb-event-mirror.main.kts:17:29)
error: unresolved reference: argument (adb-event-mirror.main.kts:18:31)
error: unresolved reference: it (adb-event-mirror.main.kts:20:19)
error: 'run' overrides nothing (adb-event-mirror.main.kts:22:2)
adb-event-mirror.main.kts: error: unresolved dependency: com.github.ajalt#clikt;2.8.0: not found
adb-event-mirror.main.kts:3:1: error: cannot access script base class 'org.jetbrains.kotlin.mainKts.MainKtsScript'. Check your module classpath for missing or conflicting dependencies
@file:DependsOn("com.github.ajalt:clikt:2.8.0")
^
adb-event-mirror.main.kts:3:7: error: unresolved reference: DependsOn
@file:DependsOn("com.github.ajalt:clikt:2.8.0")
^
adb-event-mirror.main.kts:5:12: error: unresolved reference: github
import com.github.ajalt.clikt.core.CliktCommand
^
adb-event-mirror.main.kts:6:12: error: unresolved reference: github
import com.github.ajalt.clikt.parameters.arguments.argument
^
adb-event-mirror.main.kts:7:12: error: unresolved reference: github
import com.github.ajalt.clikt.parameters.arguments.multiple
^
adb-event-mirror.main.kts:8:12: error: unresolved reference: github
import com.github.ajalt.clikt.parameters.arguments.transformAll
^
adb-event-mirror.main.kts:9:12: error: unresolved reference: github
import com.github.ajalt.clikt.parameters.options.flag
^
adb-event-mirror.main.kts:10:12: error: unresolved reference: github
import com.github.ajalt.clikt.parameters.options.option
^
adb-event-mirror.main.kts:13:23: error: unresolved reference: main
AdbEventMirrorCommand.main(args)
^
adb-event-mirror.main.kts:13:28: error: unresolved reference: args
AdbEventMirrorCommand.main(args)
^
adb-event-mirror.main.kts:15:32: error: unresolved reference: CliktCommand
object AdbEventMirrorCommand : CliktCommand(name = "adb-event-mirror") {
^
adb-event-mirror.main.kts:16:23: error: unresolved reference: option
private val debug by option("--debug", help = "Enable debug logging").flag()
^
adb-event-mirror.main.kts:17:29: error: unresolved reference: option
private val showTouches by option("--show-touches").flag("--hide-touches", default = true)
^
adb-event-mirror.main.kts:18:31: error: unresolved reference: argument
private val mirrorSerials by argument(name = "MIRROR_SERIAL")
^
adb-event-mirror.main.kts:20:19: error: unresolved reference: it
.transformAll { it.toSet() }
^
adb-event-mirror.main.kts:22:2: error: 'run' overrides nothing
override fun run() {
from adb-event-mirror.
The following snippet allows me to access my company's internal repository:
#!/usr/bin/env -S kotlinc -script --
@file:Repository("https://maven.global.square/artifactory/square-public")
from adb-event-mirror.
Solid 👍
Thanks!
from adb-event-mirror.
Related Issues (10)
- Flag to enable "show touches" HOT 2
- Event forwarding did not work for same emulators HOT 8
- Add to Homebrew HOT 4
- How to resolve dependency com.github.ajalt:clikt:2.8.0? HOT 8
- Could not get driver error HOT 1
- Query and match up devices
- Record events for replaying them later HOT 1
- Script doesnt work HOT 8
- Increase scrolling performance HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adb-event-mirror.