Skip to content

Commit 7af9080

Browse files
committed
Specify resolver in bindings usage instructions
1 parent 63be9a2 commit 7af9080

File tree

6 files changed

+59
-3
lines changed

6 files changed

+59
-3
lines changed

docs/src/paradox/bindings/iconv.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Iconv - Character set conversion
22

3-
To use this binding add the following dependency:
3+
To use this binding add the following resolver and the dependency:
4+
5+
sbt
6+
: @@snip [build.sbt](../resources/build.sbt) { #library_resolver }
7+
8+
Maven
9+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
10+
11+
Gradle
12+
: @@snip [build.gradle](../resources/build.gradle) { #library_resolver }
413

514
@@dependency[sbt,Maven,Gradle] {
615
group="org.scala-native.bindgen"

docs/src/paradox/bindings/posix.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# POSIX
22

3-
An addition to Scala Native's [POSIX](http://www.scala-native.org/en/latest/lib/posixlib.html) bindings. To use one of the POSIX bindings you must add it as a dependency:
3+
An addition to Scala Native's [POSIX](http://www.scala-native.org/en/latest/lib/posixlib.html) bindings. To use one of the POSIX bindings you must add the resolver and the dependency:
4+
5+
sbt
6+
: @@snip [build.sbt](../resources/build.sbt) { #library_resolver }
7+
8+
Maven
9+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
10+
11+
Gradle
12+
: @@snip [build.gradle](../resources/build.gradle) { #library_resolver }
13+
414

515
@@dependency[sbt,Maven,Gradle] {
616
group="org.scala-native.bindgen"

docs/src/paradox/bindings/utf8proc.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
This binding for [`utf8proc.h`] provides Unicode normalization, case-folding, and other operations for strings in the UTF-8 encoding.
44

5-
To use it add the following dependency:
5+
To use it add the following resolver and the dependency:
6+
7+
sbt
8+
: @@snip [build.sbt](../resources/build.sbt) { #library_resolver }
9+
10+
Maven
11+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
12+
13+
Gradle
14+
: @@snip [build.gradle](../resources/build.gradle) { #library_resolver }
615

716
@@dependency[sbt,Maven,Gradle] {
817
group="org.scala-native.bindgen"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// #library_resolver
2+
repositories {
3+
maven {
4+
url "https://dl.bintray.com/scala-native-bindgen/maven"
5+
}
6+
}
7+
// #library_resolver

docs/src/paradox/resources/build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// #library_resolver
2+
resolvers += Resolver.bintrayRepo("scala-native-bindgen", "maven")
3+
// #library_resolver

docs/src/paradox/resources/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>maven-scala-test</artifactId>
8+
9+
<!-- #library_resolver -->
10+
<repositories>
11+
<repository>
12+
<id>maven</id>
13+
<url>http://dl.bintray.com/scala-native-bindgen/maven</url>
14+
</repository>
15+
</repositories>
16+
<!-- #library_resolver -->
17+
18+
</project>

0 commit comments

Comments
 (0)