I have two systemProps in my gradle.properties: ``...
# community-support
j
I have two systemProps in my gradle.properties:
Copy code
# Use windows system cert store <https://github.com/gradle/gradle/issues/6584>
systemProp.javax.net.ssl.trustStoreType=Windows-ROOT

# Enable AIAcaIssuers <https://stackoverflow.com/a/52501530/24140305>
systemProp.com.sun.security.enableAIAcaIssuers=true
Is there a way to have these only apply when running on windows?
v
I don't think so unless you change the wrapper scripts (both as e.g. Git Bash or Cygwin Bash could be used on Windows) but then also only when invoking the wrapper scripts they will be effective and not for example when running from IDE.
c
move the properties to ~/gradle.properties, only populating them on Windows machines.
v
Which of course needs to manage this somehow and it would then be for each and every build. But other than that, yes. 😄