@@ -35,7 +35,6 @@ import org.gradle.api.Project
35
35
import org.gradle.api.tasks.SourceSet
36
36
import org.gradle.plugins.ide.idea.GenerateIdeaModule
37
37
import org.gradle.plugins.ide.idea.model.IdeaModel
38
- import org.gradle.util.GUtil
39
38
40
39
/**
41
40
* Utility classes.
@@ -48,7 +47,7 @@ class Utils {
48
47
static String getConfigName (String sourceSetName , String type ) {
49
48
// same as DefaultSourceSet.configurationNameOf
50
49
String baseName = sourceSetName == SourceSet . MAIN_SOURCE_SET_NAME ?
51
- ' ' : GUtil . toCamelCase(sourceSetName )
50
+ ' ' : sourceSetName . capitalize( )
52
51
return StringUtils . uncapitalize(baseName + StringUtils . capitalize(type))
53
52
}
54
53
@@ -58,7 +57,7 @@ class Utils {
58
57
*/
59
58
static String getSourceSetSubstringForTaskNames (String sourceSetName ) {
60
59
return sourceSetName == SourceSet . MAIN_SOURCE_SET_NAME ?
61
- ' ' : GUtil . toCamelCase(sourceSetName )
60
+ ' ' : sourceSetName . capitalize( )
62
61
}
63
62
64
63
private static final String ANDROID_BASE_PLUGIN_ID = " com.android.base"
@@ -92,7 +91,7 @@ class Utils {
92
91
// Fortunately, the naming scheme is well defined:
93
92
// https://kotlinlang.org/docs/reference/using-gradle.html#compiler-options
94
93
Preconditions . checkState(isAndroidProject(project))
95
- return " compile" + GUtil . toCamelCase(variantName ) + " Kotlin"
94
+ return " compile" + variantName . capitalize( ) + " Kotlin"
96
95
}
97
96
98
97
/**
0 commit comments