-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 1.18 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
plugins {
application
id("smithy-java.module-conventions")
id("software.amazon.smithy.gradle.smithy-base")
}
description = "This module implements the model-bundler utility"
extra["displayName"] = "Smithy :: Java :: Model Bundler"
extra["moduleName"] = "software.amazon.smithy.java.modelbundle.api"
dependencies {
smithyBuild(project(":codegen:plugins:types-codegen"))
implementation(project(":core"))
implementation(libs.smithy.model)
api(project(":client:client-auth-api"))
api(project(":client:client-core"))
api(project(":dynamic-schemas"))
}
afterEvaluate {
val typePath = smithy.getPluginProjectionPath(smithy.sourceProjection.get(), "java-type-codegen")
sourceSets {
main {
java {
srcDir(typePath)
include("software/**")
}
resources {
srcDir(typePath)
include("META-INF/**")
}
}
}
}
tasks.named("compileJava") {
dependsOn("smithyBuild")
}
// Needed because sources-jar needs to run after smithy-build is done
tasks.sourcesJar {
mustRunAfter("compileJava")
}
tasks.processResources {
dependsOn("compileJava")
}