Skip to content

Commit

Permalink
- maven publish plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanaslann committed Jul 29, 2023
1 parent 68e155e commit 353b31c
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
// id 'maven-publish'
id 'maven-publish'
}

def versionStr = "1.0"
Expand Down Expand Up @@ -44,24 +44,11 @@ android {
enable = true
}

// publishing {
// singleVariant('release') {
// withSourcesJar()
// }
//
// publications {
// release(MavenPublication) {
// groupId = 'com.oguzhanaslann.cropview-compose'
// artifactId = 'cropview-compose'
// version = versionStr
//
// afterEvaluate {
// from components.release
// }
// }
// }
//
// }
publishing {
singleVariant('release') {
withSourcesJar()
}
}
}

dependencies {
Expand All @@ -79,4 +66,19 @@ dependencies {
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-tooling-preview'

}
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.oguzhanaslann.cropview-compose'
artifactId = 'cropview-compose'
version = versionStr
from components.release
}
}

}
}

0 comments on commit 353b31c

Please sign in to comment.