Common struct for each maven repo

This commit is contained in:
Benoit Marty 2021-12-10 21:35:48 +01:00
parent 45ff069d66
commit a71f2415a6
2 changed files with 45 additions and 28 deletions

View file

@ -41,13 +41,15 @@ allprojects {
maven { maven {
url 'https://gitlab.matrix.org/api/v4/projects/27/packages/maven' url 'https://gitlab.matrix.org/api/v4/projects/27/packages/maven'
content { content {
includeGroups.maven["gitlab.matrix.org"].each { includeGroup it } groups.olm.regex.each { includeGroupByRegex it }
groups.olm.group.each { includeGroup it }
} }
} }
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
content { content {
includeGroups.maven["jitpack.io"].each { includeGroup it } groups.jitpack.regex.each { includeGroupByRegex it }
groups.jitpack.group.each { includeGroup it }
} }
} }
// Jitsi repo // Jitsi repo
@ -56,24 +58,27 @@ allprojects {
// Note: to test Jitsi release you can use a local file like this: // Note: to test Jitsi release you can use a local file like this:
// url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-3.10.0" // url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-3.10.0"
content { content {
includeGroups.maven["github.com/vector-im"].each { includeGroup it } groups.jitsi.regex.each { includeGroupByRegex it }
groups.jitsi.group.each { includeGroup it }
} }
} }
google { google {
content { content {
includeGroups.google["all"].each { includeGroup it } groups.google.regex.each { includeGroupByRegex it }
includeGroups.google["regex"].each { includeGroupByRegex it } groups.google.group.each { includeGroup it }
} }
} }
mavenCentral { mavenCentral {
content { content {
includeGroups.mavenCentral["all"].each { includeGroup it } groups.mavenCentral.regex.each { includeGroupByRegex it }
groups.mavenCentral.group.each { includeGroup it }
} }
} }
//noinspection JcenterRepositoryObsolete //noinspection JcenterRepositoryObsolete
jcenter { jcenter {
content { content {
includeGroups.jcenter["all"].each { includeGroup it } groups.jcenter.regex.each { includeGroupByRegex it }
groups.jcenter.group.each { includeGroup it }
} }
} }
} }

View file

@ -1,6 +1,8 @@
ext.includeGroups = [ ext.groups = [
maven : [ jitpack : [
'jitpack.io' : [ regex: [
],
group: [
'com.github.Armen101', 'com.github.Armen101',
'com.github.BillCarsonFr', 'com.github.BillCarsonFr',
'com.github.chrisbanes', 'com.github.chrisbanes',
@ -9,32 +11,41 @@ ext.includeGroups = [
'com.github.tapadoo', 'com.github.tapadoo',
'com.github.vector-im', 'com.github.vector-im',
'com.github.yalantis', 'com.github.yalantis',
'com.github.Zhuinden' 'com.github.Zhuinden',
]
],
olm : [
regex: [
], ],
'gitlab.matrix.org' : [ group: [
'org.matrix.android' 'org.matrix.android',
]
],
jitsi : [
regex: [
], ],
'github.com/vector-im': [ group: [
'com.facebook.react', 'com.facebook.react',
'org.jitsi.react', 'org.jitsi.react',
'org.webkit' 'org.webkit',
] ]
], ],
google : [ google : [
'all' : [ regex: [
'com.google.firebase',
'com.android',
'com.android.tools'
],
'regex': [
'androidx\\..*', 'androidx\\..*',
'com\\.android\\.tools\\..*', 'com\\.android\\.tools\\..*',
'com\\.google\\.android\\..*' 'com\\.google\\.android\\..*',
],
group: [
'com.google.firebase',
'com.android',
'com.android.tools',
] ]
], ],
mavenCentral: [ mavenCentral: [
'all': [ regex: [
],
group: [
'com.adevinta.android', 'com.adevinta.android',
'com.airbnb.android', 'com.airbnb.android',
'com.almworks.sqlite4java', 'com.almworks.sqlite4java',
@ -168,11 +179,13 @@ ext.includeGroups = [
'org.testng', 'org.testng',
'org.threeten', 'org.threeten',
'xerces', 'xerces',
'xml-apis' 'xml-apis',
] ]
], ],
jcenter : [ jcenter : [
'all': [ regex: [
],
group: [
'com.amulyakhare', 'com.amulyakhare',
'com.otaliastudios', 'com.otaliastudios',
'com.yqritc', 'com.yqritc',
@ -180,9 +193,8 @@ ext.includeGroups = [
'dk.ilios', 'dk.ilios',
'im.dlg', 'im.dlg',
'me.dm7.barcodescanner', 'me.dm7.barcodescanner',
'me.gujun.android' 'me.gujun.android',
] ]
] ]
] ]