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

Conversation

@marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Oct 28, 2019

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

publish artifacts to maven local

💡 Motivation and Context

for testing the SDK as a maven dependency

💚 How did you test it?

App. sample implements the maven artifact.

How to publish:
./gradlew publishReleasePublicationToMavenLocal

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

add javadocs to maven as well

@marandaneto marandaneto changed the title publish maven local WIP - publish maven local Oct 28, 2019
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

LGTM but CI isn't happy yet

@marandaneto
Copy link
Contributor Author

LGTM but CI isn't happy yet

NDK not configured. Download it with SDK manager. Preferred NDK version is '20.0.5594570'

maybe because it's still beta?!

@codecov-io
Copy link

codecov-io commented Nov 9, 2019

Codecov Report

Merging #70 into master will increase coverage by 0.55%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #70      +/-   ##
============================================
+ Coverage     57.24%   57.79%   +0.55%     
- Complexity      494      513      +19     
============================================
  Files            70       70              
  Lines          2313     2353      +40     
  Branches        207      221      +14     
============================================
+ Hits           1324     1360      +36     
- Misses          897      901       +4     
  Partials         92       92
Impacted Files Coverage Δ Complexity Δ
...ain/java/io/sentry/core/protocol/SentryThread.java 76.59% <0%> (-4.89%) 20% <0%> (+6%)
...-core/src/main/java/io/sentry/core/Breadcrumb.java 94.23% <0%> (+0.23%) 22% <0%> (ø) ⬇️
...n/java/io/sentry/core/SentryStackTraceFactory.java 90.69% <0%> (+0.37%) 23% <0%> (+11%) ⬆️
...core/src/main/java/io/sentry/core/SentryEvent.java 66.66% <0%> (+3.12%) 37% <0%> (+2%) ⬆️
...c/main/java/io/sentry/core/MainEventProcessor.java 65% <0%> (+6.17%) 6% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ed1aa2...9cf46a8. Read the comment docs.


# Migrating to AndroidX - AGP 3.6.x
android.useAndroidX=true
#android.enableJetifier=true - causing SHA1 digest error
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marandaneto marandaneto requested a review from ninniuz November 9, 2019 18:45

object BuildPlugins {
val androidGradle = "com.android.tools.build:gradle:3.5.2"
val androidGradle = "com.android.tools.build:gradle:3.6.0-beta03"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ninniuz what do you think about that?
I'd like to use maven-publish with the native support that AGP 3.6.x provides.

Copy link

Choose a reason for hiding this comment

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

It is a great addition to AGP and it makes publishing a lot easier, but I wouldn't use beta releases as they could affect aar generation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ninniuz based on the changelog, the "only" different thing that affects aar generation would be useNewApkCreator which I've disabled, that's why I think it's safe to go, but I do understand your concern.

api(project(":sentry-android-ndk"))
}

afterEvaluate {
Copy link

Choose a reason for hiding this comment

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

Can you factor out the repeated publishing logic into the main build.gradle file?

@marandaneto
Copy link
Contributor Author

for now in favor of #129

@marandaneto
Copy link
Contributor Author

@marandaneto marandaneto closed this Dec 4, 2019
@marandaneto marandaneto deleted the feat/pub_maven_local branch January 10, 2020 22:40
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.

5 participants