Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Conversation

@bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Nov 9, 2019

While doing this I found we have to publish snapshot builds to artifactory instead.

The goal of this PR is to be able to publish packages via the main gradle file which will publish jar for sentry-core and arr for the Android libraries. It'll also ignore the sample project.


plugins {
`java-library`
`maven-publish`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marandaneto I guess merging #70 will affect this bit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a problem

publications {
register(project.name, MavenPublication::class) {
if (project.hasProperty("android")) {
artifact("$buildDir/outputs/aar/${project.name}-release.aar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the sentry-core module, we don't need android stuff in here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this is all very provisional. It will all move to the main gradle file

id("com.android.application")
kotlin("android")
// id("io.sentry.android.gradle") how to add sentry gradle plugin
id(Config.PublishPlugins.bintrayPlugin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go into the modules that would be published, not in the sample app.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, just playing around. Draft PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a description of the goal

@bruno-garcia
Copy link
Member Author

Closed in favor of #129

@marandaneto marandaneto deleted the feat/publish branch April 9, 2020 07:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants