@@ -2,6 +2,30 @@ import org.tomlj.Toml
2
2
import org.tomlj.TomlParseResult
3
3
import org.tomlj.TomlTable
4
4
5
+ buildscript {
6
+ repositories {
7
+ gradle. mozconfig. substs. GRADLE_MAVEN_REPOSITORIES . each { repository ->
8
+ maven {
9
+ url repository
10
+ if (gradle. mozconfig. substs. ALLOW_INSECURE_GRADLE_REPOSITORIES ) {
11
+ allowInsecureProtocol = true
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ ext. kotlin_version = ' 1.8.21'
18
+
19
+ dependencies {
20
+ classpath ' org.mozilla.apilint:apilint:0.5.2'
21
+ classpath ' com.android.tools.build:gradle:7.4.2'
22
+ classpath ' org.apache.commons:commons-exec:1.3'
23
+ classpath ' com.diffplug.spotless:spotless-plugin-gradle:6.18.0'
24
+ classpath ' org.tomlj:tomlj:1.1.0'
25
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
26
+ }
27
+ }
28
+
5
29
def tryInt = { string ->
6
30
if (string == null ) {
7
31
return string
@@ -132,30 +156,6 @@ allprojects {
132
156
133
157
buildDir " ${ topobjdir} /gradle/build"
134
158
135
- buildscript {
136
- repositories {
137
- gradle. mozconfig. substs. GRADLE_MAVEN_REPOSITORIES . each { repository ->
138
- maven {
139
- url repository
140
- if (gradle. mozconfig. substs. ALLOW_INSECURE_GRADLE_REPOSITORIES ) {
141
- allowInsecureProtocol = true
142
- }
143
- }
144
- }
145
- }
146
-
147
- ext. kotlin_version = ' 1.8.21'
148
-
149
- dependencies {
150
- classpath ' org.mozilla.apilint:apilint:0.5.2'
151
- classpath ' com.android.tools.build:gradle:7.4.2'
152
- classpath ' org.apache.commons:commons-exec:1.3'
153
- classpath ' com.diffplug.spotless:spotless-plugin-gradle:6.18.0'
154
- classpath ' org.tomlj:tomlj:1.1.0'
155
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
156
- }
157
- }
158
-
159
159
// A stream that processes bytes line by line, prepending a tag before sending
160
160
// each line to Gradle's logging.
161
161
class TaggedLogOutputStream extends org.apache.commons.exec. LogOutputStream {
0 commit comments