Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'org.jetbrains.kotlin.multiplatform' version '1.3.40'
- id 'maven-publish'
- id 'maven'
- id "com.jfrog.bintray" version "1.8.4"
- }
- repositories {
- mavenCentral()
- }
- group 'com.fudge'
- version '1.0-SNAPSHOT'
- kotlin {
- jvm()
- js {
- browser {
- }
- nodejs {
- }
- }
- // For ARM, should be changed to iosArm32 or iosArm64
- // For Linux, should be changed to e.g. linuxX64
- // For MacOS, should be changed to e.g. macosX64
- // For Windows, should be changed to e.g. mingwX64
- mingwX64("mingw")
- sourceSets {
- commonMain {
- dependencies {
- implementation kotlin('stdlib-common')
- }
- }
- commonTest {
- dependencies {
- implementation kotlin('test-common')
- implementation kotlin('test-annotations-common')
- }
- }
- jvmMain {
- dependencies {
- implementation kotlin('stdlib-jdk8')
- }
- }
- jvmTest {
- dependencies {
- implementation kotlin('test')
- implementation kotlin('test-junit')
- }
- }
- jsMain {
- dependencies {
- implementation kotlin('stdlib-js')
- }
- }
- jsTest {
- dependencies {
- implementation kotlin('test-js')
- }
- }
- mingwMain {
- }
- mingwTest {
- }
- }
- }
- publishing {
- publications {
- // jvm8 {
- JVMPublication(MavenPublication) {
- from components.java
- groupId 'com.fudge.test'
- artifactId 'mppjvmtest'
- version '1.0'
- }
- }
- }
- bintray {
- user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
- key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
- publications = ['JVMPublication']
- pkg {
- repo = 'testmpp'
- name = 'testmpp'
- userOrg = user
- licenses = ['Apache-2.0']
- vcsUrl = 'https://github.com/natanfudge/testjvmlib.git'
- labels = ['gear', 'gore', 'gorilla']
- publicDownloadNumbers = true
- attributes = ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes
- version {
- name = '1.0-Final'
- desc = 'Testsetestset'
- vcsTag = '1.3.0'
- attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement