|
| 1 | +import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer |
| 2 | +import com.expediagroup.graphql.plugin.gradle.graphql |
| 3 | + |
| 4 | +val mc_version: String by extra |
| 5 | +val rabbitmq_version: String by extra |
| 6 | +val travelers_titles_version: String by extra |
| 7 | +val yungs_api_version: String by extra |
| 8 | +val graphql_client_version: String by extra |
| 9 | +val kotlin_forge_version: String by extra |
| 10 | + |
| 11 | +plugins { |
| 12 | + idea |
| 13 | + id("com.possible-triangle.gradle") version ("0.1.5") |
| 14 | + id("com.expediagroup.graphql") version ("8.1.0") |
| 15 | +} |
| 16 | + |
| 17 | +withKotlin() |
| 18 | + |
| 19 | +forge { |
| 20 | + includesLibrary("com.rabbitmq:amqp-client:$rabbitmq_version") |
| 21 | + includesLibrary("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version") |
| 22 | + |
| 23 | + kotlinForgeVersion = null |
| 24 | +} |
| 25 | + |
| 26 | +repositories { |
| 27 | + modrinthMaven() |
| 28 | +} |
| 29 | + |
| 30 | +// required because of duplicate package export |
| 31 | +configurations.named("minecraftLibrary") { |
| 32 | + exclude(group = "org.jetbrains", module = "annotations") |
| 33 | +} |
| 34 | + |
| 35 | +dependencies { |
| 36 | + modImplementation("maven.modrinth:travelers-titles:${travelers_titles_version}") |
| 37 | + modRuntimeOnly("maven.modrinth:yungs-api:${yungs_api_version}") |
| 38 | + |
| 39 | + // required because of duplicate package export by thedarkcolour:kotlinforforge:all |
| 40 | + implementation("thedarkcolour:kffmod:${kotlin_forge_version}") |
| 41 | + implementation("thedarkcolour:kfflang:${kotlin_forge_version}") |
| 42 | + implementation("thedarkcolour:kfflib:${kotlin_forge_version}") |
| 43 | + |
| 44 | + //add("minecraftLibrary", "org.jetbrains.kotlin:kotlin-reflect:${kotlin.coreLibrariesVersion}") |
| 45 | + |
| 46 | + /* |
| 47 | + "minecraftLibrary"("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version") { |
| 48 | + exclude(group = "org.jetbrains.kotlinx") |
| 49 | + exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib") |
| 50 | + exclude(group = "org.jetbrains") |
| 51 | + } |
| 52 | +
|
| 53 | + "jarJar"("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version") { |
| 54 | + jarJar.pin(this, "[${graphql_client_version},)") |
| 55 | + } |
| 56 | + */ |
| 57 | +} |
| 58 | + |
| 59 | +graphql { |
| 60 | + client { |
| 61 | + endpoint = "http://localhost:8080/api/graphql" |
| 62 | + packageName = "com.possible_triangle.atheneum_connector.generated" |
| 63 | + serializer = GraphQLSerializer.KOTLINX |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +enablePublishing { |
| 68 | + githubPackages() |
| 69 | +} |
| 70 | + |
| 71 | +uploadToModrinth { |
| 72 | + syncBodyFromReadme() |
| 73 | +} |
| 74 | + |
| 75 | +enableSonarQube() |
0 commit comments