Skip to content

Commit d261125

Browse files
elect86ctrueden
authored andcommitted
playing around with re-adapted early-prototype declarative Gradle
1 parent 69fc630 commit d261125

33 files changed

+686
-17
lines changed

.idea/compiler.xml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 31 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/declarative/buildSrc/declarative.buildSrc.main.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//import org.gradle.api.experimental.java.javaLibrary
2+
3+
plugins {
4+
5+
}
6+
7+
//javaLibrary {
8+
// javaVersion = 11
9+
//}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = "buildSrc"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.gradle.api.experimental.common
2+
3+
import org.gradle.api.artifacts.dsl.Dependencies
4+
import org.gradle.api.artifacts.dsl.DependencyCollector
5+
import org.gradle.declarative.dsl.model.annotations.Restricted
6+
7+
/**
8+
* The declarative dependencies DSL block for an application.
9+
*/
10+
@Restricted
11+
interface ApplicationDependencies : Dependencies {
12+
val implementation: DependencyCollector
13+
val runtimeOnly: DependencyCollector
14+
val compileOnly: DependencyCollector
15+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package org.gradle.api.experimental.common
2+
3+
import org.gradle.api.artifacts.dsl.Dependencies
4+
import org.gradle.api.artifacts.dsl.DependencyCollector
5+
import org.gradle.declarative.dsl.model.annotations.Restricted
6+
7+
/**
8+
* The declarative dependencies DSL block for a library.
9+
*/
10+
@Restricted
11+
interface LibraryDependencies : Dependencies {
12+
val api: DependencyCollector
13+
val implementation: DependencyCollector
14+
val runtimeOnly: DependencyCollector
15+
val compileOnly: DependencyCollector
16+
// CompileOnlyApi is not included here, since both Android and KMP do not support it.
17+
// Does that mean we should also reconsider if we should support it? Or, should we
18+
// talk to Android and KMP about adding support
19+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.gradle.api.experimental.java
2+
3+
import org.gradle.api.experimental.jvm.HasJavaTarget
4+
import org.gradle.api.experimental.jvm.HasJvmApplication
5+
import org.gradle.declarative.dsl.model.annotations.Restricted
6+
7+
/**
8+
* An application implemented using a single version of Java.
9+
*/
10+
@Restricted
11+
interface JavaApplication : HasJavaTarget, HasJvmApplication

0 commit comments

Comments
 (0)