diff --git a/steamclog/build.gradle b/steamclog/build.gradle index fae710f..8465e24 100644 --- a/steamclog/build.gradle +++ b/steamclog/build.gradle @@ -6,6 +6,25 @@ plugins { // Note, do not apply sentry plugins here; must be done in application module } +// Because the components are created only during the afterEvaluate phase, you must +// configure your publications using the afterEvaluate() lifecycle method. +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + // Applies the component for the release build variant. + from components.release + + // You can then customize attributes of the publication as shown below. + groupId = 'com.steamclock.steamclog' + artifactId = 'release' + version = 'v2.0' + } + } + } +} + android { compileSdkVersion 30 buildToolsVersion "30.0.3"