equal
  deleted
  inserted
  replaced
  
    
    
    24 import com.vanniktech.maven.publish.MavenPublishBaseExtension  | 
    24 import com.vanniktech.maven.publish.MavenPublishBaseExtension  | 
    25 import com.vanniktech.maven.publish.MavenPublishPlugin  | 
    25 import com.vanniktech.maven.publish.MavenPublishPlugin  | 
    26 import com.vanniktech.maven.publish.SonatypeHost  | 
    26 import com.vanniktech.maven.publish.SonatypeHost  | 
    27 import org.gradle.api.Project  | 
    27 import org.gradle.api.Project  | 
    28 import org.gradle.kotlin.dsl.apply  | 
    28 import org.gradle.kotlin.dsl.apply  | 
         | 
    29 import org.gradle.kotlin.dsl.assign  | 
    29 import org.gradle.kotlin.dsl.configure  | 
    30 import org.gradle.kotlin.dsl.configure  | 
    30   | 
    31   | 
    31 internal fun Project.configureMavenPublish() { | 
    32 internal fun Project.configureMavenPublish() { | 
    32     apply<MavenPublishPlugin>()  | 
    33     apply<MavenPublishPlugin>()  | 
    33   | 
    34   | 
    35         publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)  | 
    36         publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)  | 
    36         signAllPublications()  | 
    37         signAllPublications()  | 
    37   | 
    38   | 
    38         // default pom info. each field can be overridden in specific project  | 
    39         // default pom info. each field can be overridden in specific project  | 
    39         pom { | 
    40         pom { | 
    40             name.set("${project.group}:${project.name}") | 
    41             name = "${project.group}:${project.name}" | 
    41             description.set("A library to retrieve and display opensource licenses in applications") | 
    42             description = "A library to retrieve and display opensource licenses in applications"  | 
    42             inceptionYear.set("2023") | 
    43             inceptionYear = "2023"  | 
    43             val githubUrl = "https://github.com/fbarthelery/AboutOss/"  | 
    44             val githubUrl = "https://github.com/fbarthelery/AboutOss/"  | 
    44             url.set(githubUrl)  | 
    45             url = githubUrl  | 
    45             scm { | 
    46             scm { | 
    46                 url.set(githubUrl)  | 
    47                 url = githubUrl  | 
    47                 connection.set("scm:git:$githubUrl.git") | 
    48                 connection = "scm:git:$githubUrl.git"  | 
    48             }  | 
    49             }  | 
    49   | 
    50   | 
    50             licenses { | 
    51             licenses { | 
    51                 license { | 
    52                 license { | 
    52                     name.set("GPL-3.0-or-later") | 
    53                     name = "GPL-3.0-or-later"  | 
    53                     url.set("https://www.gnu.org/licenses/gpl-3.0.html") | 
    54                     url = "https://www.gnu.org/licenses/gpl-3.0.html"  | 
    54                     distribution.set("repo") | 
    55                     distribution = "repo"  | 
    55                 }  | 
    56                 }  | 
    56             }  | 
    57             }  | 
    57   | 
    58   | 
    58             developers { | 
    59             developers { | 
    59                 developer { | 
    60                 developer { | 
    60                     id.set("da_risk") | 
    61                     id = "da_risk"  | 
    61                     name.set("Frédéric Barthéléry") | 
    62                     name = "Frédéric Barthéléry"  | 
    62                     email.set("da_risk@geekorum.com") | 
    63                     email = "da_risk@geekorum.com"  | 
    63                 }  | 
    64                 }  | 
    64             }  | 
    65             }  | 
    65         }  | 
    66         }  | 
    66     }  | 
    67     }  | 
    67   | 
         | 
    68 }  | 
    68 }  |