Skip to content

Commit

Permalink
Merge branch 'main' into gh-1365
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed May 19, 2021
2 parents 9894775 + 657706a commit 73ad945
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 26 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Unreleased

# 5.0.0-beta.4

* Fix: Enrich Transactions with Context Data (#1469)
* Feat: OkHttp callback for Customising the Span (#1478)
* Bump: Apache HttpClient to 5.0.4 (#1476)

# 5.0.0-beta.3

Expand Down
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all, clean compile dryRelease doRelease release update stop checkFormat format
.PHONY: all clean compile dryRelease doRelease release update stop checkFormat format api

all: clean checkFormat compile dryRelease
all: stop clean checkFormat compile dryRelease

# deep clean
clean:
Expand All @@ -11,17 +11,13 @@ compile:
./gradlew build

# do a dry release (like a local deploy)
# remember to add the -SNAPSHOT suffix to the version
dryRelease:
./gradlew publishToMavenLocal --no-daemon

# deploy the current build to maven central
# remember to remove the -SNAPSHOT suffix from the version
# promotes the release to maven central
doRelease:
cd scripts
kotlinc -script release.kts -- -d ../distributions | sh
cd ..
kotlinc -script scripts/release.kts -- -d ../distributions | sh
./gradlew closeAndReleaseRepository

# clean, build, deploy and promote to maven central
Expand Down
4 changes: 1 addition & 3 deletions buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ object Config {
val aspectj = "org.aspectj:aspectjweaver"
val servletApi = "javax.servlet:javax.servlet-api"

val apacheHttpClient = "org.apache.httpcomponents.client5:httpclient5:5.0.3"
val apacheHttpCore = "org.apache.httpcomponents.core5:httpcore5:5.0.3"
val apacheHttpCoreH2 = "org.apache.httpcomponents.core5:httpcore5-h2:5.0.3"
val apacheHttpClient = "org.apache.httpcomponents.client5:httpclient5:5.0.4"

private val retrofit2Version = "2.9.0"
private val retrofit2Group = "com.squareup.retrofit2"
Expand Down
5 changes: 2 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=512m -XX:MaxMetaspaceSize=1536m -XX:+H
android.useAndroidX=true

# Release information
buildVersionCode=20063
# -SNAPSHOT avoids signing
versionName=5.0.0-beta.4-SNAPSHOT
buildVersionCode=20064
versionName=5.0.0-beta.5-SNAPSHOT

# disable renderscript, it's enabled by default
android.defaults.buildfeatures.renderscript=false
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
20 changes: 10 additions & 10 deletions scripts/release.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
* For example, all packages are in the "distributions" directory:
*
* distributions
* ├── sentry-3.1.2-SNAPSHOT
* ├── sentry-android-3.1.2-SNAPSHOT
* ├── sentry-android-core-3.1.2-SNAPSHOT
* ├── sentry-android-ndk-3.1.2-SNAPSHOT
* ├── sentry-android-timber-3.1.2-SNAPSHOT
* ├── sentry-log4j2-3.1.2-SNAPSHOT
* ├── sentry-logback-3.1.2-SNAPSHOT
* ├── sentry-servlet-3.1.2-SNAPSHOT
* ├── sentry-spring-3.1.2-SNAPSHOT
* └── sentry-spring-boot-starter-3.1.2-SNAPSHOT
* ├── sentry-3.1.2
* ├── sentry-android-3.1.2
* ├── sentry-android-core-3.1.2
* ├── sentry-android-ndk-3.1.2
* ├── sentry-android-timber-3.1.2
* ├── sentry-log4j2-3.1.2
* ├── sentry-logback-3.1.2
* ├── sentry-servlet-3.1.2
* ├── sentry-spring-3.1.2
* └── sentry-spring-boot-starter-3.1.2
*
* To execute the script two environment variables that are used by Maven have to be present: OSSRH_USERNAME, OSSRH_PASSWORD
*
Expand Down
2 changes: 0 additions & 2 deletions sentry-apache-http-client-5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ tasks.withType<KotlinCompile>().configureEach {
dependencies {
api(project(":sentry"))
api(Config.Libs.apacheHttpClient)
api(Config.Libs.apacheHttpCore)
api(Config.Libs.apacheHttpCoreH2)

compileOnly(Config.CompileOnly.nopen)
errorprone(Config.CompileOnly.nopenChecker)
Expand Down

0 comments on commit 73ad945

Please sign in to comment.