File tree 3 files changed +33
-1
lines changed
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "image" : " mcr.microsoft.com/devcontainers/java:17-bookworm" ,
3
+ "features" : {
4
+ "ghcr.io/devcontainers/features/java:1" : {
5
+ "version" : " 17"
6
+ }
7
+ },
8
+ "customizations" : {
9
+ "vscode" : {
10
+ "settings" : {
11
+ "java.server.launchMode" : " Standard"
12
+ },
13
+ "extensions" : [
14
+ " vscjava.vscode-java-pack" ,
15
+ " vscjava.vscode-gradle"
16
+ ]
17
+ }
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "java.compile.nullAnalysis.mode" : " automatic"
3
+ }
Original file line number Diff line number Diff line change
1
+ import java.util.Properties
2
+
1
3
rootProject.name = " okhttp-parent"
2
4
3
5
plugins {
@@ -51,7 +53,15 @@ include(":container-tests")
51
53
52
54
project(" :okhttp-logging-interceptor" ).name = " logging-interceptor"
53
55
54
- if (! isKnownBrokenIntelliJ()) {
56
+ val androidHome = System .getenv(" ANDROID_HOME" )
57
+ val localProperties = Properties ().apply {
58
+ val file = File (" local.properties" )
59
+ if (file.exists()) {
60
+ load(file.inputStream())
61
+ }
62
+ }
63
+ val sdkDir = localProperties.getProperty(" sdk.dir" )
64
+ if ((androidHome != null || sdkDir != null ) && ! isKnownBrokenIntelliJ()) {
55
65
include(" :okhttp-android" )
56
66
include(" :android-test" )
57
67
include(" :android-test-app" )
You can’t perform that action at this time.
0 commit comments