This message was deleted.
# general
s
This message was deleted.
r
How did you mange it that it is asking for input? I never faced this before
b
You mean to replicate
./gradlew build --console=plain
? Try
export ORG_GRADLE_PROJECT_console=plain
f
@rekire I have a
gradle init --dsl groovy --type basic --project-name provision --quiet
command in CI to perform something and it now started asking if it should enable incubating features. 😛 @Big Chungus Nope, with
--console=plain
you're still asked questions. 😞 I'm literally looking for
DEBIAN_FRONTEND=noninteractive
but fear something like this does not exist for Gradle.
I found this https://github.com/gradle/gradle/pull/3106 but it still relies on feature detection. I'd like to force Gradle.
b
I see, well look at init command switches to pass in required input via cli.
export ORG_GRADLE_PROJECT_<projectPropertyKey>=<value>
is just a neat trick to pass in project configuration via env variables
Looks like it's not gonna be of much use in your case
f
I added the
--incubating
flag and its fine now, but I'd like to prevent this in the future.
v
Just make sure no terminal is attached, for example on *nix you could do
Copy code
gradle init <<<''
Or
Copy code
gradle init </dev/null
On Windows for example
Copy code
gradle init <NUL
f
Good idea, why haven't I thought of that. 😛
Would still be nice to have a global flag, adding this to every invocation just to be safe, not good.
r
This is a nice trick which I should remember