Skip to content

Commit

Permalink
Merge pull request #154 from icerockdev/develop
Browse files Browse the repository at this point in the history
Publish plugin to gradlePluginPortal
  • Loading branch information
anton6tak authored Aug 5, 2021
2 parents 0c29a3a + 046ee83 commit 1b6bf98
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/compilation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ jobs:
run: ./gradlew -p network-generator detekt build publishToMavenLocal
- name: Check runtime
run: ./gradlew detekt build publishToMavenLocal syncMultiPlatformLibraryDebugFrameworkIosX64
- name: Install pods
run: cd sample/ios-app && pod install
- name: Check iOS
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
run: cd sample/ios-app && set -o pipefail && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
30 changes: 30 additions & 0 deletions network-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
id("org.jetbrains.kotlin.jvm") version("1.5.20")
id("detekt-convention")
id("publication-convention")
id("com.gradle.plugin-publish") version ("0.15.0")
id("java-gradle-plugin")

}

Expand Down Expand Up @@ -39,3 +41,31 @@ publishing.publications.register("mavenJava", MavenPublication::class) {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}

gradlePlugin {
plugins {
create("multiplatform-network-generator") {
id = "dev.icerock.mobile.multiplatform-network-generator"
implementationClass = "dev.icerock.moko.network.MultiPlatformNetworkGeneratorPlugin"
}
}
}

pluginBundle {
website = "https://github.com/icerockdev/moko-network"
vcsUrl = "https://github.com/icerockdev/moko-network"
description = "Plugin to provide network components for iOS & Android"
tags = listOf("moko-network", "moko", "kotlin", "kotlin-multiplatform")

plugins {
getByName("multiplatform-network-generator") {
displayName = "MOKO network generator plugin"
}
}

mavenCoordinates {
groupId = project.group as String
artifactId = project.name
version = project.version as String
}
}

This file was deleted.

0 comments on commit 1b6bf98

Please sign in to comment.