Skip to content

Commit

Permalink
Fix code block indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 authored Sep 24, 2021
1 parent 6d6f394 commit 452512a
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ To see an example head to [jitpack.io](https://jitpack.io) and 'Look Up' a GitHu

Gradle example:
```gradle
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.User:Repo:Version'
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.User:Repo:Version'
}
```

*Note*: when using multiple repositories in build.gradle it is recommended to add JitPack *at the end*. Gradle will go through all repositories in order until it finds a dependency.
Expand All @@ -56,8 +56,8 @@ A snapshot is a version that has not been released. The difference between a rea

For example:
```gradle
// dependency on the latest commit in the master branch
implementation 'com.github.jitpack:gradle-simple:master-SNAPSHOT'
// dependency on the latest commit in the master branch
implementation 'com.github.jitpack:gradle-simple:master-SNAPSHOT'
```

Adding `-SNAPSHOT` will build the latest commit on the master branch.
Expand Down Expand Up @@ -87,8 +87,8 @@ In addition to snapshot builds JitPack supports building Pull Requests. Simply u

For example:
```gradle
// dependency for Pull Request 4
implementation 'com.github.jitpack:gradle-simple:PR4-SNAPSHOT'
// dependency for Pull Request 4
implementation 'com.github.jitpack:gradle-simple:PR4-SNAPSHOT'
```

Publishing on JitPack
Expand All @@ -107,13 +107,13 @@ As long as there's a build file in your repository and it can install your libra
Add dependency information in your README. Tell the world where to get your library:

```gradle
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.jitpack:gradle-simple:1.0'
}
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.jitpack:gradle-simple:1.0'
}
```

- Add sources jar. Creating the sources jar makes it easier for others to use your code and contribute.
Expand Down

0 comments on commit 452512a

Please sign in to comment.