Advertisement
Guest User

Untitled

a guest
Jun 29th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 2.65 KB | None | 0 0
  1. plugins {
  2.     id 'org.jetbrains.kotlin.multiplatform' version '1.3.40'
  3.     id 'maven-publish'
  4.     id 'maven'
  5.     id "com.jfrog.bintray" version "1.8.4"
  6. }
  7. repositories {
  8.     mavenCentral()
  9. }
  10. group 'com.fudge'
  11. version '1.0-SNAPSHOT'
  12.  
  13.  
  14. kotlin {
  15.     jvm()
  16.     js {
  17.         browser {
  18.         }
  19.         nodejs {
  20.         }
  21.     }
  22.     // For ARM, should be changed to iosArm32 or iosArm64
  23.     // For Linux, should be changed to e.g. linuxX64
  24.     // For MacOS, should be changed to e.g. macosX64
  25.     // For Windows, should be changed to e.g. mingwX64
  26.     mingwX64("mingw")
  27.     sourceSets {
  28.         commonMain {
  29.             dependencies {
  30.                 implementation kotlin('stdlib-common')
  31.             }
  32.         }
  33.         commonTest {
  34.             dependencies {
  35.                 implementation kotlin('test-common')
  36.                 implementation kotlin('test-annotations-common')
  37.             }
  38.         }
  39.         jvmMain {
  40.             dependencies {
  41.                 implementation kotlin('stdlib-jdk8')
  42.             }
  43.         }
  44.         jvmTest {
  45.             dependencies {
  46.                 implementation kotlin('test')
  47.                 implementation kotlin('test-junit')
  48.             }
  49.         }
  50.         jsMain {
  51.             dependencies {
  52.                 implementation kotlin('stdlib-js')
  53.             }
  54.         }
  55.         jsTest {
  56.             dependencies {
  57.                 implementation kotlin('test-js')
  58.             }
  59.         }
  60.         mingwMain {
  61.         }
  62.         mingwTest {
  63.         }
  64.     }
  65. }
  66.  
  67.  
  68. publishing {
  69.     publications {
  70. //        jvm8 {
  71.         JVMPublication(MavenPublication) {
  72.             from components.java
  73.             groupId 'com.fudge.test'
  74.             artifactId 'mppjvmtest'
  75.             version '1.0'
  76.         }
  77.     }
  78.  
  79. }
  80.  
  81.  
  82. bintray {
  83.     user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
  84.     key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
  85.     publications = ['JVMPublication']
  86.     pkg {
  87.         repo = 'testmpp'
  88.         name = 'testmpp'
  89.         userOrg = user
  90.         licenses = ['Apache-2.0']
  91.         vcsUrl = 'https://github.com/natanfudge/testjvmlib.git'
  92.         labels = ['gear', 'gore', 'gorilla']
  93.         publicDownloadNumbers = true
  94.         attributes = ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes
  95.         version {
  96.             name = '1.0-Final'
  97.             desc = 'Testsetestset'
  98.             vcsTag = '1.3.0'
  99.             attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
  100.         }
  101.     }
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement